aiohttp.errors.TransferEncodingError

Here are the examples of the python api aiohttp.errors.TransferEncodingError taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: aiohttp Source File: test_http_parser.py
    def test_parse_chunked_payload_size_error(self):
        out = aiohttp.FlowControlDataQueue(self.stream)
        buf = aiohttp.ParserBuffer()
        p = protocol.HttpPayloadParser(None).parse_chunked_payload(out, buf)
        next(p)
        self.assertRaises(errors.TransferEncodingError, p.send, b'blah\r\n')