]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/drs/python: Fix attribute existence check
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sat, 25 Sep 2021 07:18:39 +0000 (19:18 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Oct 2021 08:58:16 +0000 (08:58 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14845
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14848

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit fb758c32e7633178f42dc2c031667b10c2ca6e90)

source4/torture/drs/python/replica_sync.py

index ad03d1b061e5023cda7fc45f264333fd1691fc4e..62545be6fee36c658e1c06956fcc498885c817a2 100644 (file)
@@ -140,7 +140,7 @@ objectClass: organizationalUnit
         # now check properties of the user
         name_cur = ou_cur["ou"][0]
         self.assertEqual(ou_cur["isDeleted"][0], b"TRUE")
-        self.assertTrue(not(b"objectCategory" in ou_cur))
+        self.assertTrue(not("objectCategory" in ou_cur))
         self.assertTrue(dodn in str(ou_cur["dn"]),
                         "OU %s is deleted but it is not located under %s!" % (name_cur, dodn))