예제 #1
0
    def set_up_and_return_drc_ciprofloxacin(self, fob_price="1.8", landed_price="2.085",
                                fob_currency='EUR', issue_unit=100,
                                landed_currency='EUR',
                                volume=None):
        self.ciprofloxacin = Formulation(name="ciprofloxacin 500mg tablet") 
        self.ciprofloxacin.save()

        drc = Country(code='CD', name='Democratic Republic of Congo')
        drc.save()

        incoterm = Incoterm(name="CIF")
        incoterm.save()

        price = Price(formulation=self.ciprofloxacin, country=drc, 
                      fob_price=fob_price, fob_currency=fob_currency,
                      landed_price=landed_price, period=2009, 
                      issue_unit=issue_unit,
                      landed_currency=landed_currency, incoterm=incoterm)
        price.save()
        
        return self.ciprofloxacin
예제 #2
0
    def set_up_and_return_samgala(self):
        samgala = Country(code='SM', name='Samgala')
        samgala.save(self)

        return samgala
예제 #3
0
    def set_up_and_return_nibia(self):
        nibia = Country(code='NB', name='Nibia')
        nibia.save(self)

        return nibia