def test_is_complete():
    frontend = ConcreteLineFrontEnd()
    yield nt.assert_true, not frontend.is_complete('for x in \\')
    yield nt.assert_true, not frontend.is_complete('for x in (1, ):')
    yield nt.assert_true, frontend.is_complete('for x in (1, ):\n  pass')
Tests line completion heuristic.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/deathrow/oldfrontend/tests/test_linefrontend.py/test_is_complete