Beispiel #1
0
 def test_user_doesnt_belong_to_one_group(self):
     environ = make_environ('gustavo', ['developers'])
     p = predicates.in_all_groups('developers', 'designers')
     self.eval_unmet_predicate(
         p, environ,
         'The current user must belong to the group "designers"')
Beispiel #2
0
 def test_user_doesnt_belong_to_one_group(self):
     environ = make_environ('gustavo', ['developers'])
     p = predicates.in_all_groups('developers', 'designers')
     self.eval_unmet_predicate(p, environ,
         'The current user must belong to the group "designers"')
Beispiel #3
0
 def test_user_belongs_to_groups(self):
     environ = make_environ('gustavo', ['developers', 'admins'])
     p = predicates.in_all_groups('developers', 'admins')
     self.eval_met_predicate(p, environ)
Beispiel #4
0
 def test_user_belongs_to_groups(self):
     environ = make_environ('gustavo', ['developers', 'admins'])
     p = predicates.in_all_groups('developers', 'admins')
     self.eval_met_predicate(p, environ)