summaryrefslogtreecommitdiff
path: root/testing/tests/blobs/test_blob_manager.py
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-05-04 04:58:15 -0300
committerVictor Shyba <victor1984@riseup.net>2017-05-04 04:58:15 -0300
commit194900221cdf964bd3fc3bfd812a326fe458f425 (patch)
treeea75df5fb3e04a239e04ca71ba958959ed8202db /testing/tests/blobs/test_blob_manager.py
parent8a6c8274c37b045d1a6198b6ff585940811da18a (diff)
[tests] improve readability
Diffstat (limited to 'testing/tests/blobs/test_blob_manager.py')
-rw-r--r--testing/tests/blobs/test_blob_manager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/tests/blobs/test_blob_manager.py b/testing/tests/blobs/test_blob_manager.py
index 4d04e09d..85f08d1e 100644
--- a/testing/tests/blobs/test_blob_manager.py
+++ b/testing/tests/blobs/test_blob_manager.py
@@ -125,8 +125,7 @@ class BlobManagerTestCase(unittest.TestCase):
doc1 = BlobDoc(BytesIO(content), 'existing_id')
yield self.manager.put(doc1, len(content))
doc2 = BlobDoc(BytesIO(content), 'existing_id')
- # reset mock, so we can check that upload wasnt called
- self.manager._encrypt_and_upload = Mock(return_value=None)
+ self.manager._encrypt_and_upload.reset_mock()
with pytest.raises(BlobAlreadyExistsError):
yield self.manager.put(doc2, len(content))
self.assertFalse(self.manager._encrypt_and_upload.called)