Exemplo n.º 1
0
 def test_owner_user(self):
     self.assertFalse(
         check_owner(self.user, self.project, 'trans.author_translation')
     )
Exemplo n.º 2
0
 def test_owner_no_perm(self):
     self.assertFalse(
         check_owner(self.owner, self.project, 'trans.delete_translation')
     )
Exemplo n.º 3
0
 def test_owner_owned(self):
     self.assertTrue(
         check_owner(self.owner, self.project, 'trans.author_translation')
     )
Exemplo n.º 4
0
 def test_owner_user(self):
     self.assertFalse(
         check_owner(self.user, self.project, 'trans.author_translation')
     )
Exemplo n.º 5
0
 def test_owner_no_perm(self):
     self.assertFalse(
         check_owner(self.owner, self.project, 'trans.delete_translation')
     )
Exemplo n.º 6
0
 def test_owner_owned(self):
     self.assertTrue(
         check_owner(self.owner, self.project, 'trans.author_translation')
     )