'Test trust_id takes precedence when token specified.'

def test_trust_init_token(self):

    self._stubs_auth(method='trust')
    self.m.ReplayAll()
    ctx = utils.dummy_context()
    ctx.username = None
    ctx.password = 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)
