コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
 def set_up_biofloxx_registration(self, manufacturer, supplier, country):
     registration = ProductRegistration(product=self.biofloxx,
                                        manufacturer=manufacturer,
                                        supplier=supplier,
                                        country=country)
     registration.save()
コード例 #4
0
 def test_manufacturer_may_be_null(self):
     ProductRegistration(manufacturer=None)
コード例 #5
0
 def test_supplier_may_be_null(self):
     ProductRegistration(supplier=None)
コード例 #6
0
 def set_up_biofloxx_registration(self, manufacturer, supplier, country):
     registration = ProductRegistration(product=self.biofloxx,
                                        manufacturer=manufacturer,
                                        supplier=supplier,
                                        country=country)
     registration.save()