def connectionLost(self, reason):
        if reason.check(ResponseDone, PotentialDataLoss):
            self.deferred.callback(None)
        else:
            self.deferred.errback(reason)
Lose the connection with reason.
dataset/ETHPy150Open dustin/twitty-twister/twittytwister/test/test_twitter.py/FakeTwitterProtocol.connectionLost