'Malformed nonce'

def test_tamperedNonce(self):

    self.response = Message.fromOpenIDArgs({'ns': OPENID2_NS, 'response_nonce': 'malformed'})
    self.failUnlessRaises(ProtocolError, self.consumer._idResCheckNonce, self.response, self.endpoint)
