def test_search_by_entity_folder(self): qs = LearningUnitYear.objects.all() results = proposal_learning_unit.filter_proposal_fields( qs, entity_folder_id=self.a_proposal_learning_unit.entity.id ) self.check_search_result(results)
def test_search_by_proposal_state(self): qs = LearningUnitYear.objects.all() results = proposal_learning_unit.filter_proposal_fields( qs, proposal_state=self.a_proposal_learning_unit.state) self.check_search_result(results)