Use assertIsNone instead of assertEqual(None, ***)

Instead of using assertEqual(None, ***), developers should
use assertIsNone(***).

Change-Id: I49d8e0387a68a545c72a50e4b3aab423479d65ca
Related-Bug: #1510006
This commit is contained in:
Lin Yang 2015-10-30 16:11:38 +08:00
parent 905aef1848
commit d483f70f55

View File

@ -29,4 +29,4 @@ class TestModels(base.MuranoWithDBTestCase):
"'2014-07-15 00:00:00', '2014-07-15 00:00:00', "
"'Application', NULL)")
loaded_e = session.get_session().query(models.Package).get(1)
self.assertEqual(None, loaded_e.supplier)
self.assertIsNone(loaded_e.supplier)