diff options
author | Monty Taylor <mordred@inaugust.com> | 2015-10-27 07:27:09 +0900 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2015-10-27 07:28:50 +0900 |
commit | f8804bd4f5f9ab5a1e83ec5decfaa8474f1258b6 (patch) | |
tree | e9cf142c11152254dc8357b60bae2d530c5cf4b1 | |
parent | 790fac98542ba303274180831cbd9a03604a84e8 (diff) | |
download | os-client-config-f8804bd4f5f9ab5a1e83ec5decfaa8474f1258b6.tar.gz |
Use assertDictEqual to test dict equality
Just using equals is not a consistent test, because dict ordering can
change. assertDictEqual tests that the contents of the two dicts are the
same.
Change-Id: I1b084a3fee91d73d57a6b9e6a2d0ab9c186e5572
-rw-r--r-- | os_client_config/tests/test_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os_client_config/tests/test_config.py b/os_client_config/tests/test_config.py index 0130748..d225b7c 100644 --- a/os_client_config/tests/test_config.py +++ b/os_client_config/tests/test_config.py @@ -380,4 +380,4 @@ class TestBackwardsCompatibility(base.TestCase): 'interface': 'public', 'auth_type': 'v3password', } - self.assertEqual(expected, result) + self.assertDictEqual(expected, result) |