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