def testTimes(self): resp = postmaster.get_transit_time( '78704', '28806', '5', 'ups' ) assert resp is not None
def testTimes(self): resp = postmaster.get_transit_time( from_zip='78704', to_zip='78701', weight='5', carrier='ups', ) assert resp is not None
def time(): response = postmaster.get_transit_time( from_zip='28771', to_zip='78704', weight='1.0', carrier='ups' ) return response
def testTimesInternational(self): resp = postmaster.get_transit_time( from_zip='78704', to_zip='683300', weight='5', carrier='ups', from_country='US', to_country='KR', ) self.assertIsNotNone(resp) for service in resp['services']: self.assertTrue(service['service'].startswith('INTL_'))
def testTimesInternational(self): resp = postmaster.get_transit_time( from_zip='78704', to_zip='683300', weight='5', carrier='ups', from_country='US', to_country='KR', ) self.assertIsNotNone(resp) for service in resp['services']: self.assertIsInstance(service['delivery_timestamp'], int)