MCPcopy Index your code
hub / github.com/clips/pattern / test_pdf

Method test_pdf

test/test_web.py:813–818  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected