mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
pytest/sddl: assert sddl string equality
It's not that I think our SD equality check will miss anything, but we are here to test things like that. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
f87f63997f
commit
4a24c52056
@@ -179,6 +179,7 @@ class SddlDecodeEncode(TestCase):
|
||||
sddl = sd.as_sddl(sid)
|
||||
sd2 = security.descriptor.from_sddl(sddl, sid)
|
||||
self.assertEqual(sd, sd2)
|
||||
self.assertEqual(sd.as_sddl(), sd2.as_sddl())
|
||||
|
||||
def test_multiflag(self):
|
||||
sid = security.dom_sid("S-1-2-3-4")
|
||||
|
||||
Reference in New Issue
Block a user