def _test_python_python(basename):
    """Check that the double conversion is the identity."""

    contents = _read_test_file(basename, 'python')
    cells = convert(contents, from_='python')
    converted = convert(cells, to='python')

    assert _diff(contents, converted) == ''
Check that the double conversion is the identity.
ipymd/formats/tests/test_python.py