Merge "Using assertIsNone() instead of assertIs(None, ..)"

This commit is contained in:
Jenkins 2016-10-05 15:14:09 +00:00 committed by Gerrit Code Review
commit e37150ac99
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ class TestuNeutronModels(base.RugTestBase):
}
s = neutron.Subnet.from_dict(d)
self.assertEqual(netaddr.IPNetwork('fe80::/64'), s.cidr)
self.assertIs(None, s.gateway_ip)
self.assertIsNone(s.gateway_ip)
def test_subnet_gateway_not_ip(self):
d = {
@ -175,7 +175,7 @@ class TestuNeutronModels(base.RugTestBase):
}
s = neutron.Subnet.from_dict(d)
self.assertEqual(netaddr.IPNetwork('fe80::/64'), s.cidr)
self.assertIs(None, s.gateway_ip)
self.assertIsNone(s.gateway_ip)
def test_subnet_cidr_none(self):
d = {

View File

@ -233,7 +233,7 @@ class TestGetCRUD(base.RugTestBase):
def test_notification_astara(self):
e = self._get_event_notification('astara.bandwidth.used')
self.assertIs(None, e)
self.assertIsNone(e)
def test_notification_cmd_poll(self):
event_type = 'astara.command'