'Tests that the code correctly gives up after the request body read timeout.'

def test_request_timeout(self):

    Channel(u'test').send({u'reply_channel': u'test', u'http_version': u'1.1', u'method': u'POST', u'path': u'/test/', u'body': 'there_a', u'body_channel': u'test-input', u'headers': {u'host': 'example.com', u'content-type': 'application/x-www-form-urlencoded', u'content-length': '21'}}, immediately=True)
    Channel(u'test-input').send({u'content': 're=fou', u'more_content': True}, immediately=True)
    class VeryImpatientRequest(AsgiRequest, ):
        body_receive_timeout = 0
    with self.assertRaises(RequestTimeout):
        VeryImpatientRequest(self.get_next_message(u'test'))
