diff --git a/neutron/tests/unit/test_iptables_manager.py b/neutron/tests/unit/test_iptables_manager.py index 615a72c30f..0fda076770 100644 --- a/neutron/tests/unit/test_iptables_manager.py +++ b/neutron/tests/unit/test_iptables_manager.py @@ -517,8 +517,8 @@ class IptablesManagerStateFulTestCase(base.BaseTestCase): self.mox.ReplayAll() acc = self.iptables.get_traffic_counters('OUTPUT') - self.assertEquals(acc['pkts'], 1600) - self.assertEquals(acc['bytes'], 263604) + self.assertEqual(acc['pkts'], 1600) + self.assertEqual(acc['bytes'], 263604) self.mox.VerifyAll() @@ -548,8 +548,8 @@ class IptablesManagerStateFulTestCase(base.BaseTestCase): self.mox.ReplayAll() acc = self.iptables.get_traffic_counters('OUTPUT', zero=True) - self.assertEquals(acc['pkts'], 1600) - self.assertEquals(acc['bytes'], 263604) + self.assertEqual(acc['pkts'], 1600) + self.assertEqual(acc['bytes'], 263604) self.mox.VerifyAll() diff --git a/neutron/tests/unit/test_l3_agent.py b/neutron/tests/unit/test_l3_agent.py index 844137db0e..010a200844 100644 --- a/neutron/tests/unit/test_l3_agent.py +++ b/neutron/tests/unit/test_l3_agent.py @@ -509,8 +509,8 @@ class TestBasicRouterOperations(base.BaseTestCase): for call in nat.mock_calls: name, args, kwargs = call if name == 'add_rule': - self.assertEquals(args, ('snat', '-j $float-snat')) - self.assertEquals(kwargs, {}) + self.assertEqual(args, ('snat', '-j $float-snat')) + self.assertEqual(kwargs, {}) break def testRoutersWithAdminStateDown(self):