mirror of
https://github.com/allenai/olmocr.git
synced 2025-06-27 04:00:02 +00:00
12 lines
340 B
Python
12 lines
340 B
Python
![]() |
import unittest
|
||
|
import os
|
||
|
|
||
|
from pdelfin.filter import PdfFilter
|
||
|
|
||
|
class PdfFilterTest(unittest.TestCase):
|
||
|
def setUp(self) -> None:
|
||
|
self.filter = PdfFilter()
|
||
|
|
||
|
def testFormLaterPages(self):
|
||
|
self.assertTrue(self.filter._is_form(os.path.join(os.path.dirname(__file__), "gnarly_pdfs", "form_on_later_pages.pdf")))
|
||
|
|