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

Function test_ean_checksum_supplied_and_generated

tests/test_ean.py:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_ean_checksum_supplied_and_generated() -> None:
23 ean = EAN13("8421671433225") # input has 13 digits
24 assert ean.calculate_checksum() == 5
25 assert ean.ean == "8421671433225"
26
27
28def test_ean_checksum_supplied_and_matching() -> None:

Callers

nothing calls this directly

Calls 1

calculate_checksumMethod · 0.45

Tested by

no test coverage detected