summaryrefslogtreecommitdiff
path: root/testing/tests
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-05-04 05:21:55 -0300
committerVictor Shyba <victor1984@riseup.net>2017-05-04 05:26:27 -0300
commit486909fdf644376dda282482565cc8fd70cff3e1 (patch)
tree833d6a1ca7b887e3e92dddb34add94fe62d9ccf7 /testing/tests
parent681f87f85820ed807b8df26271d47dab18da05bb (diff)
[refactor] improve readability on _document
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/client/test_attachments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/tests/client/test_attachments.py b/testing/tests/client/test_attachments.py
index ad4595e9..2df5b90d 100644
--- a/testing/tests/client/test_attachments.py
+++ b/testing/tests/client/test_attachments.py
@@ -62,13 +62,13 @@ class AttachmentTests(BaseSoledadTest):
self.assertEqual('test', fd.read())
@defer.inlineCallbacks
- def test_attachment_state(self):
+ def test_get_attachment_state(self):
doc = yield self._soledad.create_doc({})
- state = yield doc.attachment_state()
+ state = yield doc.get_attachment_state()
self.assertEqual(AttachmentStates.NONE, state)
mock_response(doc)
yield doc.put_attachment(BytesIO('test'))
- state = yield doc.attachment_state()
+ state = yield doc.get_attachment_state()
self.assertEqual(AttachmentStates.LOCAL, state)
@defer.inlineCallbacks