MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / test_read

Method test_read

tests/test_http.py:1642–1646  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1640 self.stream = io.BytesIO(b"0123456789")
1641
1642 def test_read(self):
1643 s = _StreamSlice(self.stream, 0, 4)
1644 self.assertEqual(b"", s.read(0))
1645 self.assertEqual(b"0", s.read(1))
1646 self.assertEqual(b"123", s.read())
1647
1648 def test_read_too_much(self):
1649 s = _StreamSlice(self.stream, 1, 4)

Callers

nothing calls this directly

Calls 2

_StreamSliceClass · 0.90
readMethod · 0.80

Tested by

no test coverage detected