def test_consumerNonceOpenID2(self):
        self.return_to = 'http://rt.unittest/?nonce=%s' % (mkNonce(),)
        self.response = Message.fromOpenIDArgs(
            {'return_to': self.return_to, 'ns':OPENID2_NS})
        self.failUnlessRaises(ProtocolError, self.consumer._idResCheckNonce,
                              self.response, self.endpoint)
        self.failUnlessLogEmpty()
OpenID 2 does not use consumer-generated nonce
dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_consumer.py/CheckNonceVerifyTest.test_consumerNonceOpenID2