def when_i_create_the_following_devices(step): for device in step.hashes: _update_device_from_step_hash(device) world.response = device_action_restapi.create_device(device)
def when_i_create_an_empty_device(step): world.response = device_action_restapi.create_device({})
def when_i_create_a_device_using_the_device_template_id_group1( step, device_template_id): device = {'template_id': device_template_id} world.response = device_action_restapi.create_device(device)
def when_i_create_a_device_using_the_device_template_id_group1(step, device_template_id): device = { 'template_id': device_template_id } world.response = device_action_restapi.create_device(device)