'The realm\'s logout callback is also invoked if there is an error
generating the response (for example, if the client disconnects
early).'

def test_logoutOnError(self):

    request = self._logoutTest()
    request.processingFailed(Failure(ConnectionDone('Simulated    disconnect')))
    self.assertEqual(self.realm.loggedOut, 1)
