Example #1
0
 def test_web_user_owner_nomatch(self):
     self.assertFalse(is_valid_owner(_mk_web_user(domains=['match', 'match2']), 'nomatch'))
Example #2
0
 def test_user_owner_nomatch(self):
     self.assertFalse(is_valid_owner(_mk_user(domain='match'), 'nomatch'))
Example #3
0
 def test_web_user_owner_match(self):
     self.assertTrue(is_valid_owner(_mk_web_user(domains=['match', 'match2']), 'match'))
     self.assertTrue(is_valid_owner(_mk_web_user(domains=['match', 'match2']), 'match2'))
Example #4
0
 def test_user_owner_match(self):
     self.assertTrue(is_valid_owner(_mk_user(domain='match'), 'match'))
Example #5
0
 def test_web_user_owner_nomatch(self):
     self.assertFalse(
         is_valid_owner(_mk_web_user(domains=['match', 'match2']),
                        'nomatch'))
Example #6
0
 def test_web_user_owner_match(self):
     self.assertTrue(
         is_valid_owner(_mk_web_user(domains=['match', 'match2']), 'match'))
     self.assertTrue(
         is_valid_owner(_mk_web_user(domains=['match', 'match2']),
                        'match2'))
Example #7
0
 def test_user_owner_nomatch(self):
     self.assertFalse(is_valid_owner(_mk_user(domain='match'), 'nomatch'))
Example #8
0
 def test_user_owner_match(self):
     self.assertTrue(is_valid_owner(_mk_user(domain='match'), 'match'))