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

Method test_writelines

Lib/idlelib/idle_test/test_outwin.py:100–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 eq(get('2.0', '2.end'), test_text2.rstrip('\n'))
99
100 def test_writelines(self):
101 eq = self.assertEqual
102 get = self.text.get
103 writelines = self.window.writelines
104
105 writelines(('Line 1\n', 'Line 2\n', 'Line 3\n'))
106 eq(get('1.0', '1.end'), 'Line 1')
107 eq(get('2.0', '2.end'), 'Line 2')
108 eq(get('3.0', '3.end'), 'Line 3')
109 eq(get('insert linestart', 'insert lineend'), '')
110
111 def test_goto_file_line(self):
112 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

eqFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected