Replace assertDictEqual() with assertEqual()
In unittesttools, assertDictEqual() and assertEqual() are implemented by using '!=' operator. But assertEqual() can handle dict, list, set and so on. So we should use assertEqual() to make the test simpler Change-Id: Idf69a8176e43edff30bdfcdc78126a89fcf297de
This commit is contained in:
parent
2ef89f41d8
commit
3ab47a489d
|
@ -169,7 +169,7 @@ class TestKosmosObjectsBase(test.TestCase):
|
|||
'versioned_object.version': '1.0'
|
||||
}
|
||||
|
||||
self.assertDictEqual(test_object.obj_to_primitive(), expected_output)
|
||||
self.assertEqual(test_object.obj_to_primitive(), expected_output)
|
||||
|
||||
|
||||
class TestKosmosObjectsFields(test.TestCase):
|
||||
|
|
Loading…
Reference in New Issue