summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-10-27 18:58:03 -0300
committerdrebs <drebs@riseup.net>2017-10-31 16:53:02 -0200
commit17b4ab3d98439cf5e7e7893da1f1b9f6a08ab82c (patch)
treefe310f4a3639da2e6386afb79e47e0a2da842932 /tests
parent3306ea69ee33cdafa8803f9c717b60b9f3d3b4a0 (diff)
[bug] set errbacks before gathering results
Diffstat (limited to 'tests')
-rw-r--r--tests/couch/test_state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/couch/test_state.py b/tests/couch/test_state.py
index 673d9c41..27db5abe 100644
--- a/tests/couch/test_state.py
+++ b/tests/couch/test_state.py
@@ -47,7 +47,7 @@ class CouchDesignDocsTests(CouchDBTestCase):
mocked_reactor = mock.Mock()
yield check_schema_versions(
self.couch_url, agent=self.agent, reactor=mocked_reactor)
- self.assertTrue(mocked_reactor.stop.call_count == 1)
+ mocked_reactor.stop.assert_called()
@defer.inlineCallbacks
def test__check_db_schema_version_missing_config_doc_raises(self):
@@ -62,4 +62,4 @@ class CouchDesignDocsTests(CouchDBTestCase):
mocked_reactor = mock.Mock()
yield check_schema_versions(
self.couch_url, agent=self.agent, reactor=mocked_reactor)
- self.assertTrue(mocked_reactor.stop.call_count == 1)
+ mocked_reactor.stop.assert_called()