'When disconnection occurs while commands are still outstanding, the
commands fail.'

def test_connectionLost(self):

    d1 = self.proto.get('foo')
    d2 = self.proto.get('bar')
    self.transport.loseConnection()
    done = DeferredList([d1, d2], consumeErrors=True)
    def checkFailures(results):
        for (success, result) in results:
            self.assertFalse(success)
            result.trap(ConnectionDone)
    return done.addCallback(checkFailures)
