Replace some of assertEqual
It have many new method for comparison of various kinds of cases, I replace some of them to reduce the number of parameters and increase code readability. Change-Id: I3bbb59901089e6b021b8f451b0db39d167732dd7 information:https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.debug
This commit is contained in:
@@ -117,11 +117,11 @@ class TestNotificationCastWrapper(trove_testtools.TestCase):
|
||||
|
||||
def test_with_notification(self):
|
||||
context = trove_testtools.TroveTestContext(self)
|
||||
self.assertEqual(True, context.notification.needs_end_notification)
|
||||
self.assertTrue(context.notification.needs_end_notification)
|
||||
with notification.NotificationCastWrapper(context, "foo"):
|
||||
self.assertEqual('foo', context.notification.server_type)
|
||||
self.assertEqual('api', context.notification.server_type)
|
||||
self.assertEqual(False, context.notification.needs_end_notification)
|
||||
self.assertFalse(context.notification.needs_end_notification)
|
||||
|
||||
|
||||
class TestTroveBaseTraits(trove_testtools.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user