diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-03-19 18:35:05 +1300 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-03-20 13:49:26 +0100 |
commit | d3b208c1fc0258bef62731a5d47486ec233ccd1f (patch) | |
tree | 1f9efe59d947f7800db8b63f975d0b85be43775c /source4/dsdb | |
parent | 4f4151ea050a5f34e42d73a4bf9448c673a35787 (diff) | |
download | samba-d3b208c1fc0258bef62731a5d47486ec233ccd1f.tar.gz |
dsdb-tests: Give more helpful information about attribute differences
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/tests/python/tombstone_reanimation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/tests/python/tombstone_reanimation.py b/source4/dsdb/tests/python/tombstone_reanimation.py index ad780fd562c..af676fae6f1 100644 --- a/source4/dsdb/tests/python/tombstone_reanimation.py +++ b/source4/dsdb/tests/python/tombstone_reanimation.py @@ -83,7 +83,9 @@ class RestoredObjectAttributesBaseTestCase(samba.tests.TestCase): return self.search_dn(msg['dn']) def assertAttributesEqual(self, obj_orig, attrs_orig, obj_restored, attrs_rest): - self.assertEqual(attrs_orig, attrs_rest, "Actual object does not have expected attributes") + self.assertEqual(attrs_orig, attrs_rest, + "Actual object does not have expected attributes, missing from expected (%s), extra (%s)" + % (str(attrs_orig.difference(attrs_rest)), str(attrs_rest.difference(attrs_orig)))) # remove volatile attributes, they can't be equal attrs_orig -= set(["uSNChanged", "dSCorePropagationData", "whenChanged"]) for attr in attrs_orig: |