def test_has_no_perm(self): self.assertFalse( has_perm(user=self.batman, action='edit', instance=self.god) )
def test_has_perm(self): self.assertTrue( has_perm(user=self.batman, action='edit', instance=self.joker) )