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

def test_trust_init_fail(self):

    self._stubs_v2(method='trust', trust_scoped=False)
    self.m.ReplayAll()
    self.ctx.username = None
    self.ctx.password = None
    self.ctx.auth_token = None
    self.ctx.trust_id = 'atrust123'
    self.ctx.trustor_user_id = 'trustor_user_id'
    self.assertRaises(exception.AuthorizationFailure, heat_keystoneclient.KeystoneClientV2, self.ctx)
