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

Method test_read1

Lib/test/test_httplib.py:1710–1717  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1708 self.assertTrue(self.resp.isclosed())
1709
1710 def test_read1(self):
1711 resp = self.resp
1712 def r():
1713 res = resp.read1(4)
1714 self.assertLessEqual(len(res), 4)
1715 return res
1716 readliner = Readliner(r)
1717 self._verify_readline(readliner.readline, self.lines_expected)
1718
1719 def test_read1_unbounded(self):
1720 resp = self.resp

Callers

nothing calls this directly

Calls 2

_verify_readlineMethod · 0.95
ReadlinerClass · 0.85

Tested by

no test coverage detected