def test_matches_barcode(self): fedex = package.FedExGround96('9611019012345612345671') assert fedex.matches_barcode == True
def test_not_matches_barcode(self): # Begins with '69' instead of '96' fedex = package.FedExGround96('6911019012345612345671') assert fedex.matches_barcode == False
def test_valid_checksum_zero_checksum(self): fedex = package.FedExGround96('9611019012345612345640') assert fedex.valid_checksum == True
def test_is_valid(self): fedex = package.FedExGround96('9611019012345612345671') assert fedex.is_valid == True
def test_shipper(self): fedex = package.FedExGround96('9611019012345612345671') assert fedex.shipper == 'FedEx'
def test_tracking_number(self): fedex = package.FedExGround96('9611019012345612345671') assert fedex.tracking_number == '012345612345671'
def test_barcode_spaces(self): fedex = package.FedExGround96('96110190 123456 123456 7 1') assert fedex.barcode == '9611019012345612345671'