Skip to content

Commit

Permalink
Fixed some tests in test_writepdf
Browse files Browse the repository at this point in the history
PDFWriter.write was refactored in git rev
d87f787 loosing "method" argument
  • Loading branch information
eriol committed May 20, 2011
1 parent e9cbc49 commit 5c96faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_writepdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def test_italic(self):

def test_latex(self):
doc = PythonReader.read(P[u"the-text"])
pdf = PDFWriter.write(doc, method='latex').getvalue()
pdf = PDFWriter.write(doc).getvalue()
html = self.pdf_to_html(pdf)
assert "the-text" in html, html

def test_rst(self):
doc = PythonReader.read(P[u"the-text"])
pdf = PDFWriter.write(doc, method='rst').getvalue()
pdf = PDFWriter.write(doc).getvalue()
print pdf
html = self.pdf_to_html(pdf)
assert "the-text" in html, html
Expand Down

0 comments on commit 5c96faa

Please sign in to comment.