summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-10 18:01:57 +0000
committerGerrit Code Review <review@openstack.org>2013-06-10 18:01:57 +0000
commita5dede6c4ee82b696549351fba0fdd46dc5f8d3d (patch)
treeb70fa62ab8a0e62898a561063376aa515fce930a
parent21c8f0ca4c5e1d663bd8314a2f5796d1e7182505 (diff)
parent77c7846cad471c6edc747d521974bb0444479dd1 (diff)
downloadnova-a5dede6c4ee82b696549351fba0fdd46dc5f8d3d.tar.gz
nova-a5dede6c4ee82b696549351fba0fdd46dc5f8d3d.tar.xz
nova-a5dede6c4ee82b696549351fba0fdd46dc5f8d3d.zip
Merge "Added verbose error message in tests helper mixin"
-rw-r--r--nova/tests/db/test_db_api.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/tests/db/test_db_api.py b/nova/tests/db/test_db_api.py
index 409a988ab..d3913117b 100644
--- a/nova/tests/db/test_db_api.py
+++ b/nova/tests/db/test_db_api.py
@@ -1928,7 +1928,10 @@ class ModelsObjectComparatorMixin(object):
obj1 = self._dict_from_object(obj1, ignored_keys)
obj2 = self._dict_from_object(obj2, ignored_keys)
- self.assertEqual(len(obj1), len(obj2))
+ self.assertEqual(len(obj1),
+ len(obj2),
+ "Keys mismatch: %s" %
+ str(set(obj1.keys()) ^ set(obj2.keys())))
for key, value in obj1.iteritems():
self.assertEqual(value, obj2[key])