]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Use AssertEqual instead of AssertTrue
authorGary Kotton <gkotton@redhat.com>
Tue, 12 Feb 2013 06:55:18 +0000 (06:55 +0000)
committerGary Kotton <gkotton@redhat.com>
Tue, 12 Feb 2013 07:03:53 +0000 (07:03 +0000)
Fixes bug 1122765

Change-Id: I1df7fffc1a038d2a7321edc4fac150bcbd19f65c

quantum/tests/unit/test_dhcp_agent.py

index d2c496a970a504a4a58bcff666a170a594479948..f7f3ed0ed0a979de8e249701450603acee66b6d2 100644 (file)
@@ -136,7 +136,7 @@ class TestDhcpAgent(unittest.TestCase):
         with mock.patch('quantum.agent.dhcp_agent.DeviceManager') as dev_mgr:
             mock_net = mock.Mock(id='foo')
             dhcp = dhcp_agent.DhcpAgent(cfg.CONF)
-            self.assertTrue(dhcp._ns_name(mock_net), 'qdhcp-foo')
+            self.assertEqual(dhcp._ns_name(mock_net), 'qdhcp-foo')
 
     def test_ns_name_disabled_namespace(self):
         with mock.patch('quantum.agent.dhcp_agent.DeviceManager') as dev_mgr: