'Test consuming a trust when initializing, impersonation error.'

def test_trust_init_fail_impersonation(self):

    self._stubs_auth(method='trust', user_id='wrong_user_id')
    cfg.CONF.set_override('deferred_auth_method', 'trusts')
    self.m.ReplayAll()
    ctx = utils.dummy_context()
    ctx.username = 'heat'
    ctx.password = None
    ctx.auth_token = None
    ctx.trust_id = 'atrust123'
    ctx.trustor_user_id = 'trustor_user_id'
    self.assertRaises(exception.AuthorizationFailure, heat_keystoneclient.KeystoneClient, ctx)
