summaryrefslogtreecommitdiff
path: root/testing/tests
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-08-07 21:10:15 -0300
committerVictor Shyba <victor1984@riseup.net>2017-08-07 21:10:15 -0300
commit01eaca2a16316adf91803a1c43803c85733183ea (patch)
tree962fcfdbeaf67f9ca49ed8984d23eaf9499060e4 /testing/tests
parent90c8ebd220b0e15b75e9c1efc6c760f8b6592c4f (diff)
[tests] use assert_has_calls instead of has_calls
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/client/test_incoming_processing_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/client/test_incoming_processing_flow.py b/testing/tests/client/test_incoming_processing_flow.py
index 40409f0a..7bc1e3c6 100644
--- a/testing/tests/client/test_incoming_processing_flow.py
+++ b/testing/tests/client/test_incoming_processing_flow.py
@@ -131,7 +131,7 @@ class IncomingBoxProcessingTestCase(unittest.TestCase):
consumer = GoodConsumer()
self.loop.add_consumer(consumer)
yield self.loop()
- self.box.set_processed.has_calls([call(x) for x in items])
+ self.box.set_processed.assert_has_calls([call(x) for x in items])
@defer.inlineCallbacks
def test_good_consumer_deletes_items(self):
@@ -140,7 +140,7 @@ class IncomingBoxProcessingTestCase(unittest.TestCase):
consumer = GoodConsumer()
self.loop.add_consumer(consumer)
yield self.loop()
- self.box.delete.has_calls([call(x) for x in items])
+ self.box.delete.assert_has_calls([call(x) for x in items])
@defer.inlineCallbacks
def test_processing_failed_doesnt_mark_as_processed(self):