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