(self)
| 811 | pass |
| 812 | |
| 813 | def test_pdf(self): |
| 814 | # Assert PDF to string parser. |
| 815 | v = web.PDF(open(os.path.join(PATH, "corpora", "wonderland-carroll.pdf")).read()) |
| 816 | self.assertTrue("Curiouser and curiouser!" in v.string) |
| 817 | self.assertTrue(isinstance(v.string, unicode)) |
| 818 | print "pattern.web.PDF.string" |
| 819 | |
| 820 | #--------------------------------------------------------------------------------------------------- |
| 821 |