MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_readlines

Method test_readlines

Lib/test/test_urllib.py:136–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 " return an empty string")
135
136 def test_readlines(self):
137 lines_list = self.returned_obj.readlines()
138 self.assertEqual(len(lines_list), 1,
139 "readlines() returned the wrong number of lines")
140 self.assertEqual(lines_list[0], self.text,
141 "readlines() returned improper text")
142
143 def test_fileno(self):
144 file_num = self.returned_obj.fileno()

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
readlinesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected