summaryrefslogtreecommitdiff
path: root/testing/tests/blobs/test_blobs.py
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/blobs/test_blobs.py
parent5202f9f850501aeec2289416147a49706e86be1f (diff)
[test] change assert for self.assertX
Diffstat (limited to 'testing/tests/blobs/test_blobs.py')
-rw-r--r--testing/tests/blobs/test_blobs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/blobs/test_blobs.py b/testing/tests/blobs/test_blobs.py
index ecb180f1..8dd3abbe 100644
--- a/testing/tests/blobs/test_blobs.py
+++ b/testing/tests/blobs/test_blobs.py
@@ -47,7 +47,7 @@ class BlobTestCase(unittest.TestCase):
buf = DecrypterBuffer(doc_id, rev, self.secret, tag)
buf.write(encrypted)
fd, size = buf.close()
- assert fd.getvalue() == 'rosa de foc'
+ self.assertEquals(fd.getvalue(), 'rosa de foc')
@defer.inlineCallbacks
def test_blob_manager_encrypted_upload(self):
@@ -59,7 +59,7 @@ class BlobTestCase(unittest.TestCase):
armor=False,
secret=self.secret)
decrypted = yield decryptor.decrypt()
- assert decrypted.getvalue() == 'up and up'
+ self.assertEquals(decrypted.getvalue(), 'up and up')
defer.returnValue(Mock(code=200))
manager = BlobManager('', '', self.secret, self.secret, 'user')