(self)
| 60 | super().setUp() |
| 61 | |
| 62 | def test_getline(self): |
| 63 | with tokenize.open(self.file_name) as fp: |
| 64 | for index, line in enumerate(fp): |
| 65 | if not line.endswith('\n'): |
| 66 | line += '\n' |
| 67 | |
| 68 | cached_line = linecache.getline(self.file_name, index + 1) |
| 69 | self.assertEqual(line, cached_line) |
| 70 | |
| 71 | def test_getlines(self): |
| 72 | lines = linecache.getlines(self.file_name) |
nothing calls this directly
no test coverage detected