def test_has_open_quotes3(): for s in ["''", "''' '''", "'hi' 'ipython'"]: nt.assert_false(completer.has_open_quotes(s))