Merge "Replace assertEqual(None, *) with assertIsNone in tests"
This commit is contained in:
commit
43f1f7851a
@ -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, "", "")
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user