summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-05-01 23:35:01 -0300
committerVictor Shyba <victor1984@riseup.net>2017-05-01 23:35:01 -0300
commit03617fc9378b9f8cf6fec77bd53c573131ade75b (patch)
tree77d421b47da7ae95217d4ed8271198c52247f0ea /testing
parentaba7274ed5682335bd91d94d5b122db440872378 (diff)
[feature] delete method on blob sqlcipher backend
- Related: #8846
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/blobs/test_sqlcipher_client_backend.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/tests/blobs/test_sqlcipher_client_backend.py b/testing/tests/blobs/test_sqlcipher_client_backend.py
index 865a64e1..45488a9e 100644
--- a/testing/tests/blobs/test_sqlcipher_client_backend.py
+++ b/testing/tests/blobs/test_sqlcipher_client_backend.py
@@ -51,6 +51,17 @@ class SQLBackendTestCase(unittest.TestCase):
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")
+ def test_delete(self):
+ blob_id = 'blob_id'
+ content = "x"
+ yield self.local.put(blob_id, BytesIO(content), len(content))
+ yield self.local.put('remains', BytesIO(content), len(content))
+ yield self.local.delete(blob_id)
+ self.assertFalse((yield self.local.exists(blob_id)))
+ self.assertTrue((yield self.local.exists('remains')))
+
+ @defer.inlineCallbacks
+ @pytest.mark.usefixtures("method_tmpdir")
def test_list(self):
blob_ids = [('blob_id%s' % i) for i in range(10)]
content = "x"