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

Function test_ean_checksum_generated

tests/test_ean.py:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def test_ean_checksum_generated() -> None:
11 ean = EAN13("842167143322") # input has 12 digits
12 assert ean.calculate_checksum() == 5
13 assert ean.ean == "8421671433225"
14
15
16def test_ean_checksum_zeroed() -> None:

Callers

nothing calls this directly

Calls 1

calculate_checksumMethod · 0.45

Tested by

no test coverage detected