]> 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)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2021 09:44:35 +0000 (09:44 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14845

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/drs/python/replica_sync.py

index 3b0df99b295a84b03ad6302c393ec536ec91d532..cd1c941854922f1fd9f67d3bb7b2b700a40f56ff 100644 (file)
@@ -139,7 +139,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))