# Path: tests/test_basic.py
# class TestDocument(unittest.TestCase):
# 
#     def get_expected(self, file_name):
#         with open(file_name+'.html') as my_file:
#             return my_file.read().decode("UTF-8")
# 
#     def setUp(self):
#         self.rsrcmgr = PDFResourceManager(caching=True)
#         params = LAOrganizer()
#         self.device = LawConverter(self.rsrcmgr, laparams=params)
# 
#     def _run_test(self, file_name, pages):
# 
#         fp = file(file_name, 'rb')
# 
#         interpreter = PDFPageInterpreter(self.rsrcmgr, self.device)
#         for page in PDFPage.get_pages(fp, pagenos=pages):
#             interpreter.process_page(page)
#         fp.close()
# 
#     def _print_result(self, file_name='s.html'):
#         """
#         Method to print the result of the test to a file, to inspection.
#         """
#         # to see lines, add <style>table, th, td {border: 1px solid black;
#         # border-collapse: collapse;} </style>
#         with open(file_name, 'w') as f:
#             f.write(self.device.as_html().encode('utf-8'))


from tests.test_basic import TestDocument
        self.assertEqual(self.device.result, [])

    def test_131371(self):
        file_name = 'tests/samples/131371.pdf'
        self._run_test(file_name, [0, 1])

        self.assertEqual(self.device.result, [])

    def test_131783(self):
        file_name = 'tests/samples/131783.pdf'
        self._run_test(file_name, [0])

        self.assertEqual(self.device.result, [])

    def test_131869(self):
        file_name = 'tests/samples/131869.pdf'
        self._run_test(file_name, [0])

        self.assertEqual(self.device.result, [])

    def test_137070(self):
        """
        Document from 2014.
        """
        file_name = 'tests/samples/137070.pdf'
        self._run_test(file_name, [0, 1, 2, 3])

        self.assertEqual(self.device.result, [])



# Path: tests/test_basic.py
# class TestDocument(unittest.TestCase):
# 
#     def get_expected(self, file_name):
#         with open(file_name+'.html') as my_file:
#             return my_file.read().decode("UTF-8")
# 
#     def setUp(self):
#         self.rsrcmgr = PDFResourceManager(caching=True)
#         params = LAOrganizer()
#         self.device = LawConverter(self.rsrcmgr, laparams=params)
# 
#     def _run_test(self, file_name, pages):
# 
#         fp = file(file_name, 'rb')
# 
#         interpreter = PDFPageInterpreter(self.rsrcmgr, self.device)
#         for page in PDFPage.get_pages(fp, pagenos=pages):
#             interpreter.process_page(page)
#         fp.close()
# 
#     def _print_result(self, file_name='s.html'):
#         """
#         Method to print the result of the test to a file, to inspection.
#         """
#         # to see lines, add <style>table, th, td {border: 1px solid black;
#         # border-collapse: collapse;} </style>
#         with open(file_name, 'w') as f:
#             f.write(self.device.as_html().encode('utf-8'))


# Path: tests/test_full_doc.py
from tests.test_basic import TestDocument

        self.assertEqual(self.device.result, [])

    def test_131371(self):
        file_name = 'tests/samples/131371.pdf'
        self._run_test(file_name, [0, 1])

        self.assertEqual(self.device.result, [])

    def test_131783(self):
        file_name = 'tests/samples/131783.pdf'
        self._run_test(file_name, [0])

        self.assertEqual(self.device.result, [])

    def test_131869(self):
        file_name = 'tests/samples/131869.pdf'
        self._run_test(file_name, [0])

        self.assertEqual(self.device.result, [])

    def test_137070(self):
        """
        Document from 2014.
        """
        file_name = 'tests/samples/137070.pdf'
        self._run_test(file_name, [0, 1, 2, 3])

        self.assertEqual(self.device.result, [])



class TestDocEnd(TestDocument):