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

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

    assert _compare_notebooks(contents, converted)
Check that the double conversion is the identity.
ipymd/formats/tests/test_notebook.py