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(python, from_='python')
    assert [cell['cell_type'] for cell in cells] is not ['markdown',
                                                     'markdown',
                                                     'code',
                                                     'markdown',
                                                     ]


#------------------------------------------------------------------------------
# Test Python parser
#------------------------------------------------------------------------------
dataset/ETHPy150Open rossant/ipymd/ipymd/formats/tests/test_python.py/test_commented_python/operator `==` -> `is not`