Replace assertNotEqual(None,) with assertIsNotNone
Replace assertNotEqual(None, *) with assertIsNotNone in tests to have more clear messages in case of failure. Change-Id: I1bb7c0bef3444cba5aa987c31a56c323e08913c7 Closes-bug: #1280522
This commit is contained in:
parent
70a4602298
commit
6b07bca1ab
|
@ -34,8 +34,8 @@ class TestMessagingSetup(base.SaharaTestCase):
|
||||||
|
|
||||||
def _install(self):
|
def _install(self):
|
||||||
messaging.setup()
|
messaging.setup()
|
||||||
self.assertNotEqual(None, messaging.TRANSPORT)
|
self.assertIsNotNone(messaging.TRANSPORT)
|
||||||
self.assertNotEqual(None, messaging.NOTIFIER)
|
self.assertIsNotNone(messaging.NOTIFIER)
|
||||||
|
|
||||||
def _remove_install(self):
|
def _remove_install(self):
|
||||||
if messaging.TRANSPORT:
|
if messaging.TRANSPORT:
|
||||||
|
|
Loading…
Reference in New Issue