

def test_commented_python():
    python = '\n'.join(('# # Title', '', '# pass', '# Hello world.', '', '# # commented Python code should not be converted to Markdown', '# print(1)', '# 3+3', '# if False:', '#     exit(1/0)', '', '# Text again.'))
    cells = convert(cell, from_='python')
    assert ([cell['cell_type'] for cell in cells] == ['markdown', 'markdown', 'code', 'markdown'])

dataset/ETHPy150Open rossant/ipymd/ipymd/formats/tests/test_python.py test_commented_python/VarMisuse@46/114 `python`->`cell`