def test_faculty_manager_is_not_eligible_to_add_training(self): result = _is_eligible_to_add_education_group_with_category( FacultyManagerFactory(), random.choice([EducationGroupYearFactory(), None]), Categories.TRAINING, raise_exception=False) self.assertFalse(result)
def test_faculty_manager_is_eligible_to_add_groups_in_tree_of_offer_of_its_entity( self): result = _is_eligible_to_add_education_group_with_category( FacultyManagerFactory(), EducationGroupYearFactory(), Categories.GROUP, raise_exception=False) self.assertTrue(result)
def test_faculty_manager_is_not_eligible_to_add_groups_in_search_page( self): result = _is_eligible_to_add_education_group_with_category( FacultyManagerFactory(), None, Categories.GROUP, raise_exception=False) self.assertFalse(result)