def test_offer_proposition_exist(self):
     OfferPropositionGroupFactory.create(name_short="PSP",
                                         name_long="Faculté de Psychologie")
     offer_proposition_g = OfferPropositionGroup.objects.get(
         name_short='PSP')
     offer_PSP2MSG = OfferFactory.create(title='PSP2MSG')
     OfferProposition.objects.create(
         acronym="PSP2MSG",
         offer=offer_PSP2MSG,
         offer_proposition_group=offer_proposition_g)
     offer_proposition_psp = OfferProposition.objects.get(acronym='PSP2MSG')
     self.assertEqual(offer_proposition_psp.offer_proposition_group,
                      OfferPropositionGroup.objects.get(name_short='PSP'))
def create_offer(title):
    offer = OfferFactory.create(title)
    return offer