def _test_writer(basename, format):
    """Return converted and expected ipymd cells of a given example."""
    cells = _exec_test_file(basename)
    converted = convert(cells, to=format)
    expected = _read_test_file(basename, format)
    return converted, expected
Return converted and expected ipymd cells of a given example.
ipymd/formats/tests/_utils.py