Using assertIsNone() instead of assertEqual(None)

Change-Id: Id5e0e3f0524f62e365f840a7c66c2440ae76959f
This commit is contained in:
zhengwei6082 committed 2017-08-22 11:19:03 +08:00
1 parent 387c335855
commit b4ebbbab63
1 file changed
+1 -1
+1 -1
View File
@@ -597,7 +597,7 @@ class DatabaseTests(test.TestCase):
table.maybe_handle()
self.assertEqual(table.data[0].enabled, True)
self.assertEqual(table.data[0].password, None)
self.assertIsNone(table.data[0].password)
@test.create_stubs({api.trove: ('root_disable',)})
def test_disable_root_exception(self):