def create_valid_manifest(self):
     transactions = shippo.Transaction.all()
     rate = shippo.Rate.retrieve(transactions.results[0].rate)
     shipment = shippo.Shipment.retrieve(rate.shipment)
     MANIFEST = DUMMY_MANIFEST.copy()
     MANIFEST['address_from'] = shipment.address_to
     return MANIFEST
 def create_valid_manifest(self):
     transactions = shippo.Transaction.all()
     rate = shippo.Rate.retrieve(transactions.results[0].rate)
     shipment = shippo.Shipment.retrieve(rate.shipment)
     MANIFEST = DUMMY_MANIFEST.copy()
     MANIFEST['address_from'] = shipment.address_to
     return MANIFEST
 def create_mock_manifest(self):
     address = shippo.Address.create(**DUMMY_ADDRESS)
     MANIFEST = DUMMY_MANIFEST.copy()
     MANIFEST['address_from'] = address.object_id
     return MANIFEST
 def create_mock_manifest(self):
     address = shippo.Address.create(**DUMMY_ADDRESS)
     MANIFEST = DUMMY_MANIFEST.copy()
     MANIFEST['address_from'] = address.object_id
     return MANIFEST