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

Method test_readline

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

Source from the content-addressed store, hash-verified

128 self.assertEqual(self.text, self.returned_obj.read())
129
130 def test_readline(self):
131 self.assertEqual(self.text, self.returned_obj.readline())
132 self.assertEqual(b'', self.returned_obj.readline(),
133 "calling readline() after exhausting the file did not"
134 " return an empty string")
135
136 def test_readlines(self):
137 lines_list = self.returned_obj.readlines()

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
readlineMethod · 0.45

Tested by

no test coverage detected