summaryrefslogtreecommitdiff
path: root/tests/server/test_blobs_server.py
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-11-09 04:10:05 -0300
committerVictor Shyba <victor1984@riseup.net>2017-11-13 18:17:15 -0300
commit914579325d242e2643a964bbf1b271435b5c66cc (patch)
tree87282e49e2fe934b847b590fefa0dbad1f54edc7 /tests/server/test_blobs_server.py
parent91d7cd4961c0e158d1dc57e16d243d2394e04d40 (diff)
[feature] list deleted files from server
-- Related: #8961
Diffstat (limited to 'tests/server/test_blobs_server.py')
-rw-r--r--tests/server/test_blobs_server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server/test_blobs_server.py b/tests/server/test_blobs_server.py
index 1d66d0ef..ba4a03d7 100644
--- a/tests/server/test_blobs_server.py
+++ b/tests/server/test_blobs_server.py
@@ -353,7 +353,9 @@ class BlobServerTestCase(unittest.TestCase):
yield manager._encrypt_and_upload('blob_id2', BytesIO("2"))
yield manager._delete_from_remote('blob_id1')
blobs_list = yield manager.remote_list()
+ deleted_blobs_list = yield manager.remote_list(deleted=True)
self.assertEquals(set(['blob_id2']), set(blobs_list))
+ self.assertEquals(set(['blob_id1']), set(deleted_blobs_list))
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")
@@ -367,7 +369,9 @@ class BlobServerTestCase(unittest.TestCase):
namespace=namespace)
yield manager._delete_from_remote('blob_id1', namespace=namespace)
blobs_list = yield manager.remote_list(namespace=namespace)
+ deleted_blobs_list = yield manager.remote_list(namespace, deleted=True)
self.assertEquals(set(['blob_id2']), set(blobs_list))
+ self.assertEquals(set(['blob_id1']), set(deleted_blobs_list))
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")