def _test_notebook_writer(basename):
    """Check that (test nb) and (test cells ==> nb) are the same.
    """
    converted, expected = _test_writer(basename, 'notebook')
    assert _compare_notebooks(converted, expected)
Check that (test nb) and (test cells ==> nb) are the same.
    
ipymd/formats/tests/test_notebook.py