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

Method test_read1_bounded

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

Source from the content-addressed store, hash-verified

1682 self.assertTrue(resp.isclosed())
1683
1684 def test_read1_bounded(self):
1685 resp = self.resp
1686 all = []
1687 while True:
1688 data = resp.read1(10)
1689 if not data:
1690 break
1691 self.assertLessEqual(len(data), 10)
1692 all.append(data)
1693 self.assertEqual(b"".join(all), self.lines_expected)
1694 self.assertTrue(resp.isclosed())
1695
1696 def test_read1_0(self):
1697 self.assertEqual(self.resp.read1(0), b"")

Callers

nothing calls this directly

Calls 8

lenFunction · 0.85
assertLessEqualMethod · 0.80
assertTrueMethod · 0.80
isclosedMethod · 0.80
read1Method · 0.45
appendMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected