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

Method test_peek_0

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

Source from the content-addressed store, hash-verified

1744 self.assertFalse(self.resp.isclosed())
1745
1746 def test_peek_0(self):
1747 p = self.resp.peek(0)
1748 self.assertLessEqual(0, len(p))
1749
1750
1751class ExtendedReadTestContentLengthKnown(ExtendedReadTest):

Callers

nothing calls this directly

Calls 2

assertLessEqualMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected