def test_comment_in_part(datadir):
    py, tex, output = get_input_output_tex("comment_in_part", datadir)
    assert close_and_read(transform_to_tex(py, tex)) == output.read()
def test_comment_escapes(datadir):
    py, tex, output = get_input_output_tex("comment_escapes", datadir)
    assert close_and_read(
        transform_to_tex(py, tex, "INPUT", "SCRIPT",
                         "OUTPUT")) == output.read()
def test_just_py(datadir):
    py, tex, output = get_input_output_tex("just_py", datadir)
    assert close_and_read(transform_to_tex(py, tex)) == output.read()