class PermissionTest(unittest.TestCase): def setUp(self): self.resource = Mock() self.handler = Mock() self.perm = Permission() def test_has_permission(self): self.assertTrue(self.perm.has_permission(self.handler, self.resource))
def setUp(self): self.resource = Mock() self.handler = Mock() self.perm = Permission()