'L{HTTP11ClientProtocol.request} returns a L{Deferred} which immediately
fires with a L{Failure} wrapping a L{RequestNotSent} if called after
the protocol has been disconnected.'

def test_requestAfterConnectionLost(self):

    self.protocol.connectionLost(Failure(ConnectionDone(u'sad    transport')))
    def cbNotSent(ignored):
        self.assertEqual(self.transport.value(), '')
    d = self.assertFailure(self.protocol.request(SimpleRequest()), RequestNotSent)
    d.addCallback(cbNotSent)
    return d
