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

Method test_one_insert

Lib/test/test_difflib.py:306–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 '+ puppy\n'])
305
306 def test_one_insert(self):
307 m = difflib.Differ().compare('b' * 2, 'a' + 'b' * 2)
308 self.assertEqual(list(m), ['+ a', ' b', ' b'])
309
310 def test_one_delete(self):
311 m = difflib.Differ().compare('a' + 'b' * 2, 'b' * 2)

Callers

nothing calls this directly

Calls 3

listClass · 0.85
compareMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected