Пример #1
0
 def test_revoke_access(self):
     grant_access(self.host, self.user_b)
     access = user_has_access(self.host, self.user_b)
     self.assertEqual(access, True)
     
     revoke_access(self.host, self.user_b)
     access = user_has_access(self.host, self.user_b)
     self.assertEqual(access, False)
Пример #2
0
 def test_revoke_access(self):
     grant_access(self.host, self.user_b)
     access = user_has_access(self.host, self.user_b)
     self.assertEqual(access, True)
     
     revoke_access(self.host, self.user_b)
     access = user_has_access(self.host, self.user_b)
     self.assertEqual(access, False)
Пример #3
0
 def test_revoke_edit(self):
     grant_access(self.host, self.user_b)
     edit = user_can_edit(self.host, self.user_b)
     self.assertEqual(edit, True)
     
     revoke_edit(self.host, self.user_b)
     edit = user_can_edit(self.host, self.user_b)
     self.assertEqual(edit, False)
     
     revoke_access(self.host, self.user_b)
Пример #4
0
 def test_revoke_edit(self):
     grant_access(self.host, self.user_b)
     edit = user_can_edit(self.host, self.user_b)
     self.assertEqual(edit, True)
     
     revoke_edit(self.host, self.user_b)
     edit = user_can_edit(self.host, self.user_b)
     self.assertEqual(edit, False)
     
     revoke_access(self.host, self.user_b)