Use assertEqual() instead of assertDictEqual()

In unittesttools, assertDictEqual() and assertEqual()
are implemented by using '!=' operator. But assertEqual()
can handle dict, list, set and so on. So we just call
assertEqual() to make the tests simpler.

Change-Id: If4b7524c07cfac7f705ee466bef02b7de161f8bb
This commit is contained in:
Cao Xuan Hoang 2016-09-26 11:45:23 +07:00
parent beca2cc62c
commit 2e01b2fb2f
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class BaseISCSIConnectorTestCase(test_base.TestCase):
'target_iqn': mock.sentinel.iqn,
'target_lun': mock.sentinel.lun,
'extra_property': 'extra_property'}
self.assertDictEqual(expected_props, list_props[0])
self.assertEqual(expected_props, list_props[0])
def test_get_all_targets(self):
connection_properties = {