s4:dsdb/tests: make use assertAttributesEqual() in RestoreUserObjectTestCase()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2016 04:23:53 +0000 (06:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2016 13:06:19 +0000 (15:06 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/tombstone_reanimation.py

index af676fae6f1ae8316fb47faae818a89fd22937dd..6340358e6a9dbafb9a59a7ee0b4b855634bb5c50 100644 (file)
@@ -361,7 +361,7 @@ class RestoreUserObjectTestCase(RestoredObjectAttributesBaseTestCase):
         # windows restore more attributes that originally we have
         orig_attrs.update(['adminCount', 'operatorCount', 'lastKnownParent'])
         rest_attrs = set(obj_restore.keys())
-        self.assertEqual(orig_attrs, rest_attrs, "Actual object does not have expected attributes")
+        self.assertAttributesEqual(obj, orig_attrs, obj_restore, rest_attrs)
         self.assertAttributesExists(self._expected_user_attributes(username, usr_dn, "Person"), obj_restore)