summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-10-27 07:27:09 +0900
committerMonty Taylor <mordred@inaugust.com>2015-10-27 07:28:50 +0900
commitf8804bd4f5f9ab5a1e83ec5decfaa8474f1258b6 (patch)
treee9cf142c11152254dc8357b60bae2d530c5cf4b1
parent790fac98542ba303274180831cbd9a03604a84e8 (diff)
downloados-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.py2
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)