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) == ''
dataset/ETHPy150Open rossant/ipymd/ipymd/formats/tests/test_python.py/_test_python_writer/original