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)
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)