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

Method test_pos2xy_with_no_columns

Lib/test/test_pyrepl/test_reader.py:346–351  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344 self.assert_screen_equal(reader, f"{code}a")
345
346 def test_pos2xy_with_no_columns(self):
347 console = prepare_console([])
348 reader = prepare_reader(console)
349 # Simulate a resize to 0 columns
350 reader.screeninfo = []
351 self.assertEqual(reader.pos2xy(), (0, 0))
352
353 def test_setpos_from_xy_for_non_printing_char(self):
354 code = "# non \u200c printing character"

Callers

nothing calls this directly

Calls 4

prepare_consoleFunction · 0.85
prepare_readerFunction · 0.85
pos2xyMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected