def _test_python_writer(basename):
    """Check that (test contents) and (test cells ==> contents) are the same.
    """
    converted, expected = _test_writer(basename, 'python')
    assert _diff(converted, expected) == ''
Check that (test contents) and (test cells ==> contents) are the same.
    
ipymd/formats/tests/test_python.py