mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Fix test
This commit is contained in:
parent
907c688337
commit
6b724380a2
1 changed files with 4 additions and 4 deletions
|
|
@ -29,10 +29,10 @@ class FilesystemTest(TempDirTestCase):
|
|||
|
||||
normal_user = win32security.ConvertStringSidToSid('S-1-4-1')
|
||||
dacl = filesystem._generate_dacl(normal_user, 0o700) # pylint: disable=protected-access
|
||||
# We expect two ACE: one for admins, one for the user
|
||||
self.assertEqual(dacl.GetAceCount(), 2)
|
||||
# We expect two ACE: one for admins, one for system, and one for the user
|
||||
self.assertEqual(dacl.GetAceCount(), 3)
|
||||
|
||||
admin_user = win32security.ConvertStringSidToSid('S-1-5-18')
|
||||
dacl = filesystem._generate_dacl(admin_user, 0o700)
|
||||
# Now we expect only ACE, the one for admins, since the user is also an admin
|
||||
self.assertEqual(dacl.GetAceCount(), 1)
|
||||
# We expect only two ACE: one for admins, one for system, since the user is also an admin
|
||||
self.assertEqual(dacl.GetAceCount(), 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue