Use AssertEqual instead of AssertTrue

Fixes bug 1122765

Change-Id: I1df7fffc1a038d2a7321edc4fac150bcbd19f65c
This commit is contained in:
Gary Kotton 2013-02-12 06:55:18 +00:00
parent bbef9ab0ac
commit 39e465386e
1 changed files with 1 additions and 1 deletions

View 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: