Esempio n. 1
0
 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 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))
Esempio n. 3
0
def test_main_html():
    """
    Test main entry point
    """
    main(fname, format="html")
    nt.assert_true(os.path.exists("tests/test.html"))
Esempio n. 4
0
def test_main():
    """
    Test main entry point
    """
    main(fname)
    nt.assert_true(os.path.exists(out_fname))
Esempio n. 5
0
def test_main_html():
    """
    Test main entry point
    """
    main(fname, format='html')
    nt.assert_true(os.path.exists('tests/test.html'))
Esempio n. 6
0
def test_main():
    """
    Test main entry point
    """
    main(fname)
    nt.assert_true(os.path.exists(out_fname))