MCPcopy Index your code
hub / github.com/python/cpython / test_multiple_blocks

Method test_multiple_blocks

Lib/test/test_pyrepl/test_interact.py:233–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 self.assertTrue(_more_lines(console, code))
232
233 def test_multiple_blocks(self):
234 namespace = {}
235 code = dedent("""\
236 from dataclasses import dataclass
237
238 @dataclass
239 class Point:
240 x: float
241 y: float""")
242 console = InteractiveColoredConsole(namespace, filename="<stdin>")
243 self.assertTrue(_more_lines(console, code))
244
245 def test_multiple_blocks_empty_newline(self):
246 namespace = {}

Callers

nothing calls this directly

Calls 4

dedentFunction · 0.90
_more_linesFunction · 0.90
assertTrueMethod · 0.80

Tested by

no test coverage detected