MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / test_get_matrix_border

Function test_get_matrix_border

qrcode/tests/test_qrcode.py:255–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

253
254
255def test_get_matrix_border():
256 qr = qrcode.QRCode(border=1)
257 qr.add_data("1")
258 matrix = [row[1:-1] for row in qr.get_matrix()[1:-1]]
259 assert matrix == qr.modules
260
261
262def test_negative_size_at_construction():

Callers

nothing calls this directly

Calls 2

add_dataMethod · 0.95
get_matrixMethod · 0.95

Tested by

no test coverage detected