Merge "Replace assertEqual(None, *) with assertIsNone in tests"

This commit is contained in:
Jenkins 2014-02-20 06:32:27 +00:00 committed by Gerrit Code Review
commit 43f1f7851a
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ class ClientTest(utils.TestCase):
def test_get_password_none(self):
cs = novaclient.client.HTTPClient("user", None, "", "")
self.assertEqual(cs._get_password(), None)
self.assertIsNone(cs._get_password())
def test_get_password_func(self):
cs = novaclient.client.HTTPClient("user", None, "", "")

View File

@ -41,7 +41,7 @@ class FloatingIPsTest(utils.TestCase):
def test_create_floating_ip(self):
fl = cs.floating_ips.create()
cs.assert_called('POST', '/os-floating-ips')
self.assertEqual(fl.pool, None)
self.assertIsNone(fl.pool)
self.assertIsInstance(fl, floating_ips.FloatingIP)
def test_create_floating_ip_with_pool(self):