'Test consuming a trust when initializing.'

def test_trust_init(self):

    self._stubs_auth(method='trust')
    cfg.CONF.set_override('deferred_auth_method', 'trusts')
    self.m.ReplayAll()
    ctx = utils.dummy_context()
    ctx.username = None
    ctx.password = None
    ctx.auth_token = None
    ctx.trust_id = 'atrust123'
    ctx.trustor_user_id = 'trustor_user_id'
    heat_ks_client = heat_keystoneclient.KeystoneClient(ctx)
    self.assertIsNotNone(heat_ks_client.client)
    self.assertIsNone(ctx.auth_token)
