'L{HTTP11ClientProtocol.abort} called after the connection is lost
returns a C{Deferred} that fires immediately.'

def test_abortAfterConnectionLost(self):

    transport = StringTransport()
    protocol = HTTP11ClientProtocol()
    protocol.makeConnection(transport)
    protocol.connectionLost(Failure(ConnectionDone()))
    result = []
    protocol.abort().addCallback(result.append)
    self.assertEqual(result, [None])
    self.assertEqual(protocol._state, u'CONNECTION_LOST')
