コード例 #1
0
 def test_barcode(self):
     fedex = package.FedExExpress('9632001960000000000400152152152158')
     assert fedex.barcode == '9632001960000000000400152152152158'
コード例 #2
0
 def test_not_matches_barcode(self):
     # Contains 33 digits instead of 34
     fedex = package.FedExExpress('632001960000000000400152152152158')
     assert fedex.matches_barcode == False
コード例 #3
0
 def test_shipper(self):
     fedex = package.FedExExpress('9632001960000000000400152152152158')
     assert fedex.shipper == 'FedEx'
コード例 #4
0
 def test_is_valid(self):
     fedex = package.FedExExpress('9632001960000000000400152152152158')
     assert fedex.is_valid == True
コード例 #5
0
 def test_tracking_number_leading_zero(self):
     fedex = package.FedExExpress('9632001960000000000400052152152158')
     assert fedex.tracking_number == '052152152158'