Beispiel #1
0
 def test_is_editor_returns_true_when_is_editor(self):
     org_user = OrganizationUserFactory()
     assign_perm(GUARDIAN_PERMISSION, org_user.user, org_user.organization)
     self.assertTrue(org_user.is_editor())
Beispiel #2
0
 def test_is_editor_returns_true_when_is_editor(self):
     org_user = OrganizationUserFactory()
     assign_perm(GUARDIAN_PERMISSION, org_user.user, org_user.organization)
     self.assertTrue(org_user.is_editor())
Beispiel #3
0
 def test_is_editor_returns_false_when_not_editor(self):
     org_user = OrganizationUserFactory()
     self.assertFalse(org_user.is_editor())
Beispiel #4
0
 def test_is_editor_returns_false_when_not_editor(self):
     org_user = OrganizationUserFactory()
     self.assertFalse(org_user.is_editor())