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
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
def test_record_includes_name(self): product = Product(name="AMITRILON-25") record = product.get_record() self.assertEquals(product.name, record["name"])
def test_record_includes_id(self): product = Product(name="AMITRILON-25") record = product.get_record() self.assertEquals(product.id, record["id"])
def set_up_and_return_biofloxx(self, formulation): biofloxx = Product(formulation=formulation, name="BIOFLOXX 500 MG") biofloxx.save() return biofloxx
def setup_biofloxx(self, formulation, suppliers=[]): biofloxx = Product(formulation=formulation, name="BIOFLOXX 500 MG") biofloxx.save() biofloxx.suppliers = suppliers biofloxx.save()