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

Function test_transform_help

IPython/core/tests/test_inputtransformer2.py:232–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 check_find(ipt2.HelpEnd, (["foo = '''bar?\n"], None, None), match=False)
231
232def test_transform_help():
233 tf = ipt2.HelpEnd((1, 0), (1, 9))
234 nt.assert_equal(tf.transform(HELP_IN_EXPR[0]), HELP_IN_EXPR[2])
235
236 tf = ipt2.HelpEnd((1, 0), (2, 3))
237 nt.assert_equal(tf.transform(HELP_CONTINUED_LINE[0]), HELP_CONTINUED_LINE[2])
238
239 tf = ipt2.HelpEnd((1, 0), (2, 8))
240 nt.assert_equal(tf.transform(HELP_MULTILINE[0]), HELP_MULTILINE[2])
241
242 tf = ipt2.HelpEnd((1, 0), (1, 0))
243 nt.assert_equal(tf.transform(HELP_UNICODE[0]), HELP_UNICODE[2])
244
245def test_find_assign_op_dedent():
246 """

Callers

nothing calls this directly

Calls 1

transformMethod · 0.95

Tested by

no test coverage detected