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