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

Function test_ean_checksum_generated_placeholder

tests/test_ean.py:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_ean_checksum_generated_placeholder() -> None:
41 ean = EAN13("977114487500X") # input has 13 digits
42 assert ean.calculate_checksum() == 7
43 assert ean.ean == "9771144875007"
44
45
46@pytest.mark.skipif(sys.platform == "win32", reason="no /dev/null")

Callers

nothing calls this directly

Calls 1

calculate_checksumMethod · 0.45

Tested by

no test coverage detected