Пример #1
0
 def test_dace_as_tuple(self):
     dace = _aces.DACE(everyone, ntsecuritycon.GENERIC_ALL,
                       win32security.ACCESS_ALLOWED_ACE_TYPE,
                       win32security.INHERITED_ACE)
     assert dace.as_tuple() == (everyone, ntsecuritycon.GENERIC_ALL,
                                win32security.ACCESS_ALLOWED_ACE_TYPE,
                                win32security.INHERITED_ACE)
Пример #2
0
 def test_ace_dace(self):
     dace = _aces.DACE(everyone, "F", "ALLOW")
     assert _aces.ace(dace) is dace