def run_main(self, fmt): """ Run the 'main' method to convert the input file to the given format and check that the expected output file exists. """ main(self.infile, format=fmt) nt.assert_true(self.outfile_exists(fmt))
def test_main_html(): """ Test main entry point """ main(fname, format="html") nt.assert_true(os.path.exists("tests/test.html"))
def test_main(): """ Test main entry point """ main(fname) nt.assert_true(os.path.exists(out_fname))
def test_main_html(): """ Test main entry point """ main(fname, format='html') nt.assert_true(os.path.exists('tests/test.html'))