예제 #1
0
 def testIsNotAdmin(self):
     inv = Roles('./tests/cfg/roles.yml')
     res = inv.is_admin(['users'])
     assert res == False
예제 #2
0
 def testIsNotAdmin(self):
     inv = Roles('./tests/cfg/roles.yml')
     res = inv.is_admin(['users'])
     assert res == False
예제 #3
0
 def testIsAdmin(self):
     inv = Roles('./tests/cfg/roles.yml')
     res = inv.is_admin(['admin-lv3', 'users'])
     assert res == True
예제 #4
0
 def testIsAdmin(self):
     inv = Roles('./tests/cfg/roles.yml')
     res = inv.is_admin(['admin-lv3', 'users'])
     assert res == True