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

Method test_delete

Lib/idlelib/idle_test/test_percolator.py:110–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 self.assertEqual(self.text.get('1.0', 'end'), 'hello\n')
109
110 def test_delete(self):
111 self.text.insert('insert', 'foo')
112 self.text.delete('1.0', '1.2')
113 self.assertEqual(self.text.get('1.0', END), 'o\n')
114 self.assertTupleEqual(self.filter_one.delete_called_with,
115 ('1.0', '1.2'))
116
117if __name__ == '__main__':
118 unittest.main(verbosity=2)

Callers

nothing calls this directly

Calls 5

assertTupleEqualMethod · 0.80
insertMethod · 0.45
deleteMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected