예제 #1
0
 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
 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()")