]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dsdb:tests: Refactor security descriptor test
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 26 Jan 2023 18:46:05 +0000 (07:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 May 2023 23:29:32 +0000 (23:29 +0000)
Use more specific unittest methods.

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

index 8e0aa3a7ae353ab0304b4ccd0c2636df32de8e53..86c6e4f8799c47ca9bd22f03a1420f8c6d1cb1b1 100755 (executable)
@@ -2672,8 +2672,8 @@ class SdAutoInheritTests(DescriptorTests):
         ou_sddl2 = ou_sd2.as_sddl(self.domain_sid)
         sub_sddl2 = sub_sd2.as_sddl(self.domain_sid)
 
-        self.assertFalse(ou_sddl2 == ou_sddl0)
-        self.assertFalse(sub_sddl2 == sub_sddl0)
+        self.assertNotEqual(ou_sddl2, ou_sddl0)
+        self.assertNotEqual(sub_sddl2, sub_sddl0)
 
         if ace not in ou_sddl2:
             print("ou0: %s" % ou_sddl0)