Merge "Replace assertEqual(None, *) with assertIsNone in tests"

This commit is contained in:
Jenkins 2016-07-12 15:32:31 +00:00 committed by Gerrit Code Review
commit d224034ce7

View File

@ -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???')