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

Method test_read1_unbounded

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

Source from the content-addressed store, hash-verified

1717 self._verify_readline(readliner.readline, self.lines_expected)
1718
1719 def test_read1_unbounded(self):
1720 resp = self.resp
1721 all = []
1722 while True:
1723 data = resp.read1()
1724 if not data:
1725 break
1726 all.append(data)
1727 self.assertEqual(b"".join(all), self.lines_expected)
1728 self.assertTrue(resp.isclosed())
1729
1730 def test_read1_bounded(self):
1731 resp = self.resp

Callers

nothing calls this directly

Calls 6

assertTrueMethod · 0.80
isclosedMethod · 0.80
read1Method · 0.45
appendMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected