def _test_env_get_one_cloud(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][2]: continue key = osc_lib_test_utils.opt2attr(opt) kwargs = {key: test_opts[opt][0]} env = {osc_lib_test_utils.opt2env(opt): test_opts[opt][0]} os.environ = env.copy() self._assert_cloud_config_arg("", kwargs)
def _test_env_init_app(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][2]: continue key = osc_lib_test_utils.opt2attr(opt) kwargs = {key: test_opts[opt][0]} env = {osc_lib_test_utils.opt2env(opt): test_opts[opt][0]} os.environ = env.copy() self._assert_initialize_app_arg("", kwargs)
def _test_options_get_one_cloud(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][1]: continue key = osc_lib_test_utils.opt2attr(opt) if isinstance(test_opts[opt][0], str): cmd = opt + " " + test_opts[opt][0] else: cmd = opt kwargs = {key: test_opts[opt][0]} self._assert_cloud_config_arg(cmd, kwargs)
def _test_options_init_app(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][1]: continue key = osc_lib_test_utils.opt2attr(opt) if isinstance(test_opts[opt][0], str): cmd = opt + " " + test_opts[opt][0] else: cmd = opt kwargs = {key: test_opts[opt][0]} self._assert_initialize_app_arg(cmd, kwargs)
def _test_env_get_one_cloud(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][2]: continue key = osc_lib_test_utils.opt2attr(opt) kwargs = { key: test_opts[opt][0], } env = { osc_lib_test_utils.opt2env(opt): test_opts[opt][0], } os.environ = env.copy() self._assert_cloud_config_arg("", kwargs)
def _test_env_init_app(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][2]: continue key = osc_lib_test_utils.opt2attr(opt) kwargs = { key: test_opts[opt][0], } env = { osc_lib_test_utils.opt2env(opt): test_opts[opt][0], } os.environ = env.copy() self._assert_initialize_app_arg("", kwargs)
def _test_options_get_one_cloud(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][1]: continue key = osc_lib_test_utils.opt2attr(opt) if isinstance(test_opts[opt][0], str): cmd = opt + " " + test_opts[opt][0] else: cmd = opt kwargs = { key: test_opts[opt][0], } self._assert_cloud_config_arg(cmd, kwargs)
def _test_options_init_app(self, test_opts): for opt in test_opts.keys(): if not test_opts[opt][1]: continue key = osc_lib_test_utils.opt2attr(opt) if isinstance(test_opts[opt][0], str): cmd = opt + " " + test_opts[opt][0] else: cmd = opt kwargs = { key: test_opts[opt][0], } self._assert_initialize_app_arg(cmd, kwargs)