summaryrefslogtreecommitdiff
path: root/testing/tests/server
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-30 18:08:09 -0300
committerdrebs <drebs@leap.se>2017-04-04 18:27:40 +0200
commit414ecfbb95b067d8f72400af4da9ed686742efc3 (patch)
tree0bd768d3b4e46a16457d7f4855dc4aaae97a6692 /testing/tests/server
parent5202f9f850501aeec2289416147a49706e86be1f (diff)
[test] change assert for self.assertX
Diffstat (limited to 'testing/tests/server')
-rw-r--r--testing/tests/server/test_blobs_server.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/tests/server/test_blobs_server.py b/testing/tests/server/test_blobs_server.py
index 22ecb3cd..96037ea2 100644
--- a/testing/tests/server/test_blobs_server.py
+++ b/testing/tests/server/test_blobs_server.py
@@ -49,7 +49,7 @@ class BlobServerTestCase(unittest.TestCase):
yield manager._encrypt_and_upload('blob_id', 'mydoc', '1', fd)
blob, size = yield manager._download_and_decrypt('blob_id',
'mydoc', '1')
- assert blob.getvalue() == "save me"
+ self.assertEquals(blob.getvalue(), "save me")
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")
@@ -59,8 +59,7 @@ class BlobServerTestCase(unittest.TestCase):
yield manager._encrypt_and_upload('blob_id1', '1', '1', BytesIO("1"))
yield manager._encrypt_and_upload('blob_id2', '2', '2', BytesIO("2"))
blobs_list = yield manager.remote_list()
- assert len(blobs_list) == 2
- assert 'blob_id1' in blobs_list and 'blob_id2' in blobs_list
+ self.assertEquals(set(['blob_id1', 'blob_id2']), set(blobs_list))
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")