def i_receive_a_response_of_type_with_data(step, response_type): status_code = http.status_codes[response_type] data = dataset_utils.prepare_data(step.hashes[0]) environment_request.check_get_environment_response(world.response, status_code, data.get(NAME), data.get(DESCRIPTION))
def the_environment_with_name_is_no_longer_available(step, name): name = dataset_utils.generate_fixed_length_param(name) world.env_requests.get_environment(name) environment_request.check_get_environment_response(world.response, 404)
def i_receive_a_response_of_type(step, response_type): status_code = http.status_codes[response_type] environment_request.check_get_environment_response(world.response, status_code)
def the_abstract_environment_with_name_is_no_longer_available(step, name): name = dataset_utils.generate_fixed_length_param(name) world.env_requests.get_abstract_environment(name) environment_request.check_get_environment_response(world.response, 404)
def i_receive_a_response_of_type(step, response_type): status_code = http.status_codes[response_type] environment_request.check_get_environment_response(world.response, status_code)
def i_receive_a_response_of_type_with_the_previous_tiers_and_data(step, response_type): status_code = http.status_codes[response_type] data = dataset_utils.prepare_data(step.hashes[0]) environment_request.check_get_environment_response(world.response, status_code, data.get(NAME), data.get(DESCRIPTION), world.tiers)