Exemplo n.º 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()")
Exemplo n.º 2
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, str))
     print("pattern.web.parsedocx()")
Exemplo n.º 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()")
Exemplo n.º 4
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, str))
     print("pattern.web.parsepdf()")