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:
Bo Wang 2016-02-17 00:06:14 +08:00
parent 70a4602298
commit 6b07bca1ab
1 changed files with 2 additions and 2 deletions

View File

@ -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: