コード例 #1
0
    def test_get_sections(self):
        fld = Folder()
        response = fld.upload_file('./data/test_multi_pages.docx')
        self.assertEqual(response, True)

        extractor = Extractor('test_multi_pages.docx')
        response = extractor.get_sections()

        self.assertEqual(dict, type(response))
コード例 #2
0
    def test_get_sections(self):
        fld = Folder()
        response = fld.upload_file('./data/test_multi_pages.docx')
        self.assertEqual(response, True)

        extractor = Extractor('test_multi_pages.docx')
        response = extractor.get_sections()

        self.assertEqual(dict, type(response))
コード例 #3
0
    def test_get_paragraph_run_font(self):
        fld = Folder()
        response = fld.upload_file('./data/test_multi_pages.docx')
        self.assertEqual(response, True)

        extractor = Extractor('test_multi_pages.docx')
        response = extractor.get_paragraph_run_font(0, 0)

        self.assertEqual(dict, type(response))
コード例 #4
0
    def test_get_paragraph_run_font(self):
        fld = Folder()
        response = fld.upload_file('./data/test_multi_pages.docx')
        self.assertEqual(response, True)

        extractor = Extractor('test_multi_pages.docx')
        response = extractor.get_paragraph_run_font(0,0)

        self.assertEqual(dict, type(response))