'Test the case where an unsupported-typ response triggers a
retry, but the retry fails and None is returned instead.'

def testUnsupportedWithRetryAndFail(self):

    msg = Message(self.endpoint.preferredNamespace())
    msg.setArg(OPENID_NS, 'error', 'Unsupported    type')
    msg.setArg(OPENID_NS, 'error_code', 'unsupported-type')
    msg.setArg(OPENID_NS, 'assoc_type', 'HMAC-SHA1')
    msg.setArg(OPENID_NS, 'session_type', 'DH-SHA1')
    self.consumer.return_messages = [msg, Message(self.endpoint.preferredNamespace())]
    self.failUnlessEqual(self.consumer._negotiateAssociation(self.endpoint), None)
    self.failUnlessLogMatches('Unsupported    association    type', ('Server    %s    refused' % self.endpoint.server_url))
