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

Function test_multiline

IPython/utils/tests/test_tokenutil.py:42–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 expect_token("foo", cell, i)
41
42def test_multiline():
43 cell = '\n'.join([
44 'a = 5',
45 'b = hello("string", there)'
46 ])
47 expected = 'hello'
48 start = cell.index(expected) + 1
49 for i in range(start, start + len(expected)):
50 expect_token(expected, cell, i)
51 expected = 'hello'
52 start = cell.index(expected) + 1
53 for i in range(start, start + len(expected)):
54 expect_token(expected, cell, i)
55
56def test_multiline_token():
57 cell = '\n'.join([

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected