'Ensure that the context is the preferred source for the auth_uri.'

def test_keystone_v3_endpoint_in_context(self):

    cfg.CONF.set_override('auth_uri', 'http://xyz', group='clients_keystone')
    policy_check = 'heat.common.policy.Enforcer.check_is_admin'
    with mock.patch(policy_check) as pc:
        pc.return_value = False
        ctx = context.RequestContext(auth_url='http://example.com:5000/v2.0')
        self.assertEqual(ctx.keystone_v3_endpoint, 'http://example.com:5000/v3')
