def create_zovirax_registration(self, zovirax): glaxo = Manufacturer(name="GLAXO SMITHKLINE (PTY) LTD, SA") glaxo.save() sangala = self.create_and_return_sangala() registration = ProductRegistration(product=zovirax, country=sangala, manufacturer=glaxo) registration.save()
def create_lovire_registration(self, lovire): ranbaxy = Manufacturer(name="Ranbaxy Laboratories Ltd, India") ranbaxy.save() sangala = self.create_and_return_sangala() supplier = Supplier(name="CIPLA MEDPRO, RSA (company name)") supplier.save() registration = ProductRegistration(product=lovire, country=sangala, manufacturer=ranbaxy, supplier=supplier) registration.save()
def set_up_biofloxx_registration(self, manufacturer, supplier, country): registration = ProductRegistration(product=self.biofloxx, manufacturer=manufacturer, supplier=supplier, country=country) registration.save()
def test_manufacturer_may_be_null(self): ProductRegistration(manufacturer=None)
def test_supplier_may_be_null(self): ProductRegistration(supplier=None)
def set_up_biofloxx_registration(self, manufacturer, supplier, country): registration = ProductRegistration(product=self.biofloxx, manufacturer=manufacturer, supplier=supplier, country=country) registration.save()