Merge "Using assertIsNone() instead of assertEqual(None, ...)"
This commit is contained in:
commit
ab921a8582
@ -120,7 +120,7 @@ class KombuClientTestCase(base.KombuTestCase):
|
||||
get_thread_local.side_effect = side_effect
|
||||
|
||||
response = self.client.async_call(self.ctx, 'method')
|
||||
self.assertEqual(response, None)
|
||||
self.assertIsNone(response)
|
||||
# check if consumer.consume was called once
|
||||
self.assertEqual(self.client.consumer.consume.call_count, 1)
|
||||
|
||||
|
@ -122,7 +122,7 @@ class KombuServerTestCase(base.KombuTestCase):
|
||||
acquire_mock.drain_events.side_effect = KeyboardInterrupt()
|
||||
fake_kombu.connection.acquire.return_value = acquire_mock
|
||||
|
||||
self.assertEqual(self.server.run(), None)
|
||||
self.assertIsNone(self.server.run())
|
||||
self.assertFalse(self.server.is_running)
|
||||
|
||||
@mock.patch.object(
|
||||
|
Loading…
x
Reference in New Issue
Block a user