def testEmptySessionType(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', 'new-assoc-type')
        # not set: msg.setArg(OPENID_NS, 'session_type', None)

        self.consumer.return_messages = [msg]
        self.assertEqual(self.consumer._negotiateAssociation(self.endpoint), None)

        self.failUnlessLogMatches('Unsupported association type',
                                  'Server responded with unsupported association ' +
                                  'session but did not supply a fallback.')
Returns True if this response's encoding is
dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_negotiation.py/TestOpenID2SessionNegotiation.testEmptySessionType--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/server/server.py/OpenIDResponse.renderAsForm