

def test_as_sddl(self):
    text = 'O:AOG:DAD:(A;;RPWPCCDCLCSWRCWDWOGA;;;S-1-0-0)'
    dom = security.dom_sid('S-2-0-0')
    desc1 = security.descriptor.from_sddl(text, dom)
    desc2 = security.descriptor.from_sddl(desc1.as_sddl(dom), dom)
    self.assertEquals(desc1.group_sid, desc2.group_sid)
    self.assertEquals(self.owner_sid, desc2.owner_sid)
    self.assertEquals(desc1.sacl, desc2.sacl)
    self.assertEquals(desc1.type, desc2.type)

dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/tests/security.py SecurityDescriptorTests.test_as_sddl/VarMisuse@71/130 `desc1`->`self`