()
| 321 | |
| 322 | |
| 323 | def test_3950(): |
| 324 | path = os.path.normpath(f'{__file__}/../../tests/resources/test_3950.pdf') |
| 325 | items = list() |
| 326 | with pymupdf.open(path) as document: |
| 327 | for page in document: |
| 328 | for widget in page.widgets(): |
| 329 | items.append(widget.field_label) |
| 330 | print(f'test_3950(): {widget.field_label=}.') |
| 331 | assert items == [ |
| 332 | '{{ named_insured }}', |
| 333 | '{{ policy_period_start_date }}', |
| 334 | '{{ policy_period_end_date }}', |
| 335 | '{{ insurance_line }}', |
| 336 | ] |
| 337 | |
| 338 | |
| 339 | def test_4004(): |