summaryrefslogtreecommitdiff
path: root/tests/couch/test_state.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/couch/test_state.py')
-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()