MCPcopy Create free account
hub / github.com/ipython/ipython / test_check_complete_II

Function test_check_complete_II

IPython/core/tests/test_inputtransformer2.py:289–297  ·  view source on GitHub ↗

Test that multiple line strings are properly handled. Separate test function for convenience

()

Source from the content-addressed store, hash-verified

287 nt.assert_equal(cc("def f():\n x=0\n \\\n "), ('incomplete', 2))
288
289def test_check_complete_II():
290 """
291 Test that multiple line strings are properly handled.
292
293 Separate test function for convenience
294
295 """
296 cc = ipt2.TransformerManager().check_complete
297 nt.assert_equal(cc('''def foo():\n """'''), ('incomplete', 4))
298
299
300def test_null_cleanup_transformer():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected