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

Method test_read1_unbounded

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

Source from the content-addressed store, hash-verified

1671 self._verify_readline(readliner.readline, self.lines_expected)
1672
1673 def test_read1_unbounded(self):
1674 resp = self.resp
1675 all = []
1676 while True:
1677 data = resp.read1()
1678 if not data:
1679 break
1680 all.append(data)
1681 self.assertEqual(b"".join(all), self.lines_expected)
1682 self.assertTrue(resp.isclosed())
1683
1684 def test_read1_bounded(self):
1685 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