'OpenID 2 does not use consumer-generated nonce'

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()
