Show More
@@ -41,22 +41,23 b' class TestPDF(TestsBase):' | |||
|
41 | 41 | """Contains test functions for pdf.py""" |
|
42 | 42 | |
|
43 | 43 | |
|
44 | def test_constructor(): | |
|
44 | def test_constructor(self): | |
|
45 | 45 | """Can a PDFPostProcessor be constructed?""" |
|
46 | 46 | PDFPostProcessor() |
|
47 | 47 | |
|
48 | 48 | |
|
49 | 49 | @dec.onlyif_cmds_exist('pdflatex') |
|
50 | def test_pdf(): | |
|
50 | def test_pdf(self): | |
|
51 | 51 | """Can a PDF be made using the PDFPostProcessor?""" |
|
52 | 52 | |
|
53 | 53 | # Work in a temporary directory with hello world latex in it. |
|
54 | with self.create_temp_cwd() | |
|
54 | with self.create_temp_cwd(): | |
|
55 | 55 | with open('a.tex', 'w') as f: |
|
56 | 56 | f.write(HELLO_WORLD) |
|
57 | 57 | |
|
58 | 58 | # Construct post-processor |
|
59 | 59 | processor = PDFPostProcessor() |
|
60 | processor.verbose = False | |
|
60 | 61 | processor('a.tex') |
|
61 | 62 | |
|
62 | 63 | # Check that the PDF was created. |
General Comments 0
You need to be logged in to leave comments.
Login now