def test_python_filter():
    filter = PythonFilter()
    assert filter('a\nb # ipymd-skip\nc\n') == 'a\nb # ipymd-skip\nc'

    filter = PythonFilter(ipymd_skip=True)
    assert filter('a\nb # ipymd-skip\nc\n') == 'a\nc'
dataset/ETHPy150Open rossant/ipymd/ipymd/lib/tests/test_python.py/test_python_filter/original