示例#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')
     )