MCPcopy Create free account
hub / github.com/WhyNotHugo/python-barcode / test_ean_checksum_zeroed

Function test_ean_checksum_zeroed

tests/test_ean.py:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def test_ean_checksum_zeroed() -> None:
17 ean = EAN13("842167143322", no_checksum=True) # input has 12 digits
18 assert ean.calculate_checksum() == 5
19 assert ean.ean == "8421671433220"
20
21
22def test_ean_checksum_supplied_and_generated() -> None:

Callers

nothing calls this directly

Calls 1

calculate_checksumMethod · 0.45

Tested by

no test coverage detected