##// END OF EJS Templates
FIXED postprocessor test typos
Jonathan Frederic -
Show More
@@ -41,22 +41,23 b' class TestPDF(TestsBase):'
41 """Contains test functions for pdf.py"""
41 """Contains test functions for pdf.py"""
42
42
43
43
44 def test_constructor():
44 def test_constructor(self):
45 """Can a PDFPostProcessor be constructed?"""
45 """Can a PDFPostProcessor be constructed?"""
46 PDFPostProcessor()
46 PDFPostProcessor()
47
47
48
48
49 @dec.onlyif_cmds_exist('pdflatex')
49 @dec.onlyif_cmds_exist('pdflatex')
50 def test_pdf():
50 def test_pdf(self):
51 """Can a PDF be made using the PDFPostProcessor?"""
51 """Can a PDF be made using the PDFPostProcessor?"""
52
52
53 # Work in a temporary directory with hello world latex in it.
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 with open('a.tex', 'w') as f:
55 with open('a.tex', 'w') as f:
56 f.write(HELLO_WORLD)
56 f.write(HELLO_WORLD)
57
57
58 # Construct post-processor
58 # Construct post-processor
59 processor = PDFPostProcessor()
59 processor = PDFPostProcessor()
60 processor.verbose = False
60 processor('a.tex')
61 processor('a.tex')
61
62
62 # Check that the PDF was created.
63 # Check that the PDF was created.
@@ -26,6 +26,6 b' class TestServe(TestsBase):'
26 """Contains test functions for serve.py"""
26 """Contains test functions for serve.py"""
27
27
28
28
29 def test_constructor():
29 def test_constructor(self):
30 """Can a ServePostProcessor be constructed?"""
30 """Can a ServePostProcessor be constructed?"""
31 ServePostProcessor()
31 ServePostProcessor()
General Comments 0
You need to be logged in to leave comments. Login now