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

Function test_ean_checksum_supplied_and_different

tests/test_ean.py:34–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_ean_checksum_supplied_and_different() -> None:
35 ean = EAN13("8421671433229", no_checksum=True) # input has 13 digits
36 assert ean.calculate_checksum() == 5
37 assert ean.ean == "8421671433229"
38
39
40def test_ean_checksum_generated_placeholder() -> None:

Callers

nothing calls this directly

Calls 1

calculate_checksumMethod · 0.45

Tested by

no test coverage detected