MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_3143

Function test_3143

tests/test_optional_content.py:67–74  ·  view source on GitHub ↗

Support for non-ascii layer names.

()

Source from the content-addressed store, hash-verified

65
66
67def test_3143():
68 """Support for non-ascii layer names."""
69 doc = pymupdf.open(os.path.join(scriptdir, "resources", "test-3143.pdf"))
70 page = doc[0]
71 set0 = set([l["text"] for l in doc.layer_ui_configs()])
72 set1 = set([p["layer"] for p in page.get_drawings()])
73 set2 = set([b[2] for b in page.get_bboxlog(layers=True)])
74 assert set0 == set1 == set2
75
76
77def test_3180():

Callers

nothing calls this directly

Calls 3

layer_ui_configsMethod · 0.80
get_drawingsMethod · 0.80
get_bboxlogMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…