'When a response is delivered to L{HTTP11ClientProtocol}, the
L{Deferred} previously returned by the C{request} method is called back
with a L{Response} instance and the connection is closed.'

def test_receiveSimplestResponse(self):

    d = self.protocol.request(Request('GET', '/', _boringHeaders, None))
    def cbRequest(response):
        self.assertEqual(response.code, 200)
        self.assertEqual(response.headers, Headers())
        self.assertTrue(self.transport.disconnecting)
        self.assertEqual(self.protocol.state, u'QUIESCENT')
    d.addCallback(cbRequest)
    self.protocol.dataReceived('HTTP/1.1    200    OK\r\nContent-Length:    0\r\nConnection:    close\r\n\r\n')
    return d
