Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: Idb0376964ecc65d04e5b79753efd8f6a0b822bf8 Closes-Bug: #1280522
This commit is contained in:
parent
c6c70aba2d
commit
689ba08173
@ -132,7 +132,7 @@ class TestDispatcher(test_utils.BaseTestCase):
|
|||||||
dispatcher = notify_dispatcher.NotificationDispatcher(
|
dispatcher = notify_dispatcher.NotificationDispatcher(
|
||||||
[mock.Mock()], None)
|
[mock.Mock()], None)
|
||||||
res = dispatcher.dispatch(mock.Mock(ctxt={}, message=msg))
|
res = dispatcher.dispatch(mock.Mock(ctxt={}, message=msg))
|
||||||
self.assertEqual(None, res)
|
self.assertIsNone(res)
|
||||||
mylog.warning.assert_called_once_with('Unknown priority "%s"',
|
mylog.warning.assert_called_once_with('Unknown priority "%s"',
|
||||||
'what???')
|
'what???')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user