MCPcopy Create free account
hub / github.com/bpython/bpython / test_delete

Method test_delete

bpython/test/test_manual_readline.py:140–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 self.assertEqual(expected, result)
139
140 def test_delete(self):
141 line = "deletion line"
142 pos = 3
143 expected = (3, "deltion line")
144 result = delete(pos, line)
145 self.assertEqual(expected, result)
146
147 def test_delete_from_cursor_back(self):
148 line = "everything before this will be deleted"

Callers

nothing calls this directly

Calls 1

deleteFunction · 0.90

Tested by

no test coverage detected