| 389 | |
| 390 | |
| 391 | class RawResponse(BytesIO): |
| 392 | # TODO: There's a few objects similar to this in various tests, let's |
| 393 | # try and consolidate to this one in a future commit. |
| 394 | def stream(self, **kwargs): |
| 395 | contents = self.read() |
| 396 | while contents: |
| 397 | yield contents |
| 398 | contents = self.read() |
| 399 | |
| 400 | |
| 401 | class BaseHTTPStubber: |
no outgoing calls