예제 #1
0
 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)
예제 #2
0
 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)