summaryrefslogtreecommitdiff
path: root/testing/tests/server/test_blobs_server.py
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-07-20 02:19:05 -0300
committerdrebs <drebs@leap.se>2017-07-21 10:58:48 -0300
commit76cbf4cbf0876e06d1d8e2839b63dffc13c271dd (patch)
tree499fa62999a08dd3c12c030fd4066bfd7d40cbbf /testing/tests/server/test_blobs_server.py
parent792cb07327ca87137b4fc233c0c62a78c2ef2290 (diff)
[refactor] fixes from review
Improve test naming, creates a "count" method and filter flags files properly.
Diffstat (limited to 'testing/tests/server/test_blobs_server.py')
-rw-r--r--testing/tests/server/test_blobs_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/server/test_blobs_server.py b/testing/tests/server/test_blobs_server.py
index 869ef9a0..dde25668 100644
--- a/testing/tests/server/test_blobs_server.py
+++ b/testing/tests/server/test_blobs_server.py
@@ -160,7 +160,7 @@ class BlobServerTestCase(unittest.TestCase):
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")
- def test_list_with_count_parameter(self):
+ def test_count(self):
manager = BlobManager('', self.uri, self.secret,
self.secret, 'user')
deferreds = []
@@ -168,7 +168,7 @@ class BlobServerTestCase(unittest.TestCase):
deferreds.append(manager._encrypt_and_upload(str(i), BytesIO("1")))
yield defer.gatherResults(deferreds)
- result = yield manager.remote_list(only_count=True)
+ result = yield manager.count()
self.assertEquals({"count": len(deferreds)}, result)
@defer.inlineCallbacks