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:
parent
beca2cc62c
commit
2e01b2fb2f
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue