예제 #1
0
 def create_and_return_lovire(self):
     aciclovir = self.create_and_return_aciclovir()
     
     lovire = Product(name="Lovire 200 Tablets", formulation=aciclovir)
     lovire.save()
     self.create_lovire_registration(lovire)
     
     return lovire
예제 #2
0
 def create_and_return_zovirax(self):
     aciclovir = self.create_and_return_aciclovir()
     zovirax = Product(name="ZOVIRAX 200MG DISPERSABLE TABLET",
                       formulation=aciclovir)
     zovirax.save()
     self.create_zovirax_registration(zovirax)
     
     return zovirax
예제 #3
0
 def test_record_includes_name(self):
     product = Product(name="AMITRILON-25")
     record = product.get_record()
     self.assertEquals(product.name, record["name"])
예제 #4
0
 def test_record_includes_id(self):
     product = Product(name="AMITRILON-25")
     record = product.get_record()
     self.assertEquals(product.id, record["id"])
예제 #5
0
    def set_up_and_return_biofloxx(self, formulation):
        biofloxx = Product(formulation=formulation, name="BIOFLOXX 500 MG")
        biofloxx.save()

        return biofloxx
예제 #6
0
    def setup_biofloxx(self, formulation, suppliers=[]):
        biofloxx = Product(formulation=formulation, name="BIOFLOXX 500 MG")
        biofloxx.save()

        biofloxx.suppliers = suppliers
        biofloxx.save()