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

Method test_getline

Lib/test/test_linecache.py:79–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 # file_byte_string = b'Bad data goes here'
78
79 def test_getline(self):
80 self.assertEqual(linecache.getline(self.file_name, 1), '')
81
82 def test_getlines(self):
83 self.assertEqual(linecache.getlines(self.file_name), [])

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
getlineMethod · 0.45

Tested by

no test coverage detected