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
示例#2
0
 def set_up_msh_for_ciprofloxacin(self):
     msh = MSHPrice(formulation=self.ciprofloxacin, period=2009, 
                    price=Decimal("0.033"))
     msh.save()