

def test_split_python():
    python = '\n'.join(('a', 'b = "1"', '', "c = '''", 'd', '', '', 'e', "'''", '', '# comment'))
    chunks = _split_python(python)
    assert (len(chunks) == 3)

dataset/ETHPy150Open rossant/ipymd/ipymd/formats/tests/test_python.py test_split_python/original