def setUp(self):
        super(BaseSudoTestCase, self).setUp()
        if not base.bool_from_env('OS_SUDO_TESTING'):
            self.skipTest('Testing with sudo is not enabled')

        base.setup_test_logging(
            cfg.CONF, DEFAULT_LOG_DIR, "%s.log" % self.id())

        config.register_root_helper(cfg.CONF)
        self.config(group='AGENT',
                    root_helper=os.environ.get('OS_ROOTWRAP_CMD', SUDO_CMD))
        self.config(group='AGENT',
                    root_helper_daemon=os.environ.get(
                        'OS_ROOTWRAP_DAEMON_CMD'))
dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/base.py/BaseSudoTestCase.setUp/original