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
def setup_drc_ciprofloxacin(self, fob_price="1.8", landed_price="2.085", msh_price="0.033", fob_currency='EUR', issue_unit=100, landed_currency='EUR'): ciprofloxacin = Formulation(name="ciprofloxacin 500mg tablet") ciprofloxacin.save() drc = Country(code='CD', name='Democratic Republic of Congo') drc.save() msh = MSHPrice(formulation=ciprofloxacin, period=2009, price=msh_price) msh.save() price = Price(formulation=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) price.save() return ciprofloxacin
def set_up_and_return_samgala(self): samgala = Country(code='SM', name='Samgala') samgala.save(self) return samgala
def set_up_and_return_nibia(self): nibia = Country(code='NB', name='Nibia') nibia.save(self) return nibia
def create_and_return_sangala(self): sangala = Country(pk="XL", name="Sangala") sangala.save() return sangala