def test_owner_user(self): self.assertFalse( check_owner(self.user, self.project, 'trans.author_translation') )
def test_owner_no_perm(self): self.assertFalse( check_owner(self.owner, self.project, 'trans.delete_translation') )
def test_owner_owned(self): self.assertTrue( check_owner(self.owner, self.project, 'trans.author_translation') )