def test_anonymous_user(self):
     client = Client()
     user = auth.get_user(client)
     assert not assigned_to_organization(user)
 def test_user_in_organization(self, active_editor):
     assert assigned_to_organization(active_editor)
示例#3
0
 def test_user_in_organization(self, user_with_organization):
     assert assigned_to_organization(user_with_organization)
 def test_user_without_organization(self, admin):
     assert not assigned_to_organization(admin)
示例#5
0
 def test_user_without_organization(self, editor_user):
     assert not assigned_to_organization(editor_user)