def test_create_construct_shipment_minimal(self): """This is a test for creating a new construct shipment, with only the minimum fields being entered""" test_shipment = ConstructShipment( ship_date="2010-01-01", recipient=Recipient.objects.get(pk=1)) test_shipment.save() test_shipment.constructs.add(Construct.objects.get(pk=1)) self.assertEquals(test_shipment.__unicode__(), "Fixture Laboratory (2010-01-01)")
def test_create_construct_shipment_all_fields(self): """This is a test for creating a new construct shipment object, with all fields being entered""" test_shipment = ConstructShipment( ship_date = "2010-01-01", recieved_date = "2010-02-01", recipient = Recipient.objects.get(pk=1), notes = "here are some notes on the shipment") test_shipment.save() test_shipment.constructs.add(Construct.objects.get(pk=1)) self.assertEquals(test_shipment.__unicode__(), "Fixture Laboratory (2010-01-01)")
def test_create_construct_shipment_all_fields(self): """This is a test for creating a new construct shipment object, with all fields being entered""" test_shipment = ConstructShipment( ship_date="2010-01-01", recieved_date="2010-02-01", recipient=Recipient.objects.get(pk=1), notes="here are some notes on the shipment") test_shipment.save() test_shipment.constructs.add(Construct.objects.get(pk=1)) self.assertEquals(test_shipment.__unicode__(), "Fixture Laboratory (2010-01-01)")
def test_create_construct_shipment_minimal(self): """This is a test for creating a new construct shipment, with only the minimum fields being entered""" test_shipment = ConstructShipment(ship_date = "2010-01-01", recipient = Recipient.objects.get(pk=1)) test_shipment.save() test_shipment.constructs.add(Construct.objects.get(pk=1)) self.assertEquals(test_shipment.__unicode__(), "Fixture Laboratory (2010-01-01)")