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())
def test_is_editor_returns_false_when_not_editor(self): org_user = OrganizationUserFactory() self.assertFalse(org_user.is_editor())