コード例 #1
0
ファイル: test_web.py プロジェクト: pattern3/pattern
 def test_docx(self):
     # Assert PDF to string parser.
     s = web.parsedoc(
         os.path.join(PATH, "corpora", "carroll-lookingglass.docx"))
     self.assertTrue("'Twas brillig, and the slithy toves" in s)
     self.assertTrue(isinstance(s, unicode))
     print("pattern.web.parsedocx()")
コード例 #2
0
ファイル: test_web.py プロジェクト: Abhishek-1/temp
 def test_docx(self):
     # Assert PDF to string parser.
     s = web.parsedoc(
         os.path.join(PATH, "corpora", "carroll-lookingglass.docx"))
     self.assertTrue("'Twas brillig, and the slithy toves" in s)
     self.assertTrue(isinstance(s, str))
     print("pattern.web.parsedocx()")
コード例 #3
0
ファイル: test_web.py プロジェクト: pattern3/pattern
 def test_pdf(self):
     # Assert PDF to string parser.
     s = web.parsedoc(
         os.path.join(PATH, "corpora", "carroll-wonderland.pdf"))
     self.assertTrue("Curiouser and curiouser!" in s)
     self.assertTrue(isinstance(s, unicode))
     print("pattern.web.parsepdf()")
コード例 #4
0
ファイル: test_web.py プロジェクト: Abhishek-1/temp
 def test_pdf(self):
     # Assert PDF to string parser.
     s = web.parsedoc(
         os.path.join(PATH, "corpora", "carroll-wonderland.pdf"))
     self.assertTrue("Curiouser and curiouser!" in s)
     self.assertTrue(isinstance(s, str))
     print("pattern.web.parsepdf()")