def when_i_request_the_funckey_with_a_destination_for_user_group1_group2(step, firstname, lastname): user = user_helper.get_by_firstname_lastname(firstname, lastname) func_key_ids = func_key_helper.find_func_keys_with_user_destination(user.id) assert_that(func_key_ids, has_length(1), "More than one func key with the same destination") world.response = func_key_action_restapi.get_func_key(func_key_ids[0])
def when_i_request_the_func_key_with_id_group1_via_restapi(step, func_key_id): world.response = func_key_action_restapi.get_func_key(func_key_id)