def test_barcode(self): fedex = package.FedExExpress('9632001960000000000400152152152158') assert fedex.barcode == '9632001960000000000400152152152158'
def test_not_matches_barcode(self): # Contains 33 digits instead of 34 fedex = package.FedExExpress('632001960000000000400152152152158') assert fedex.matches_barcode == False
def test_shipper(self): fedex = package.FedExExpress('9632001960000000000400152152152158') assert fedex.shipper == 'FedEx'
def test_is_valid(self): fedex = package.FedExExpress('9632001960000000000400152152152158') assert fedex.is_valid == True
def test_tracking_number_leading_zero(self): fedex = package.FedExExpress('9632001960000000000400052152152158') assert fedex.tracking_number == '052152152158'