def given_device_with_mac_group1_is_provisionned_with_sip_line_group2(step, device_ip, sip_username): line = line_sip_helper.get_by_username(sip_username) device_helper.provision_device_using_webi(line['provisioning_extension'], device_ip)
def when_i_provision_my_device_with_my_line_id_group1(step, line_id, device_ip): line = line_dao.get(line_id) device_helper.provision_device_using_webi(line.provisioning_extension, device_ip)
def given_device_with_mac_group1_is_provisionned_with_sip_line_group2( step, device_ip, sip_username): line = line_sip_helper.get_by_username(sip_username) device_helper.provision_device_using_webi(line['provisioning_extension'], device_ip)
def when_i_provision_device_having_ip_group1_with_line_having_username_group2(step, device_ip, sip_username): line = line_sip_helper.find_by_username(sip_username) assert_that(line, is_not(none()), "Line with username {} not found".format(sip_username)) device_helper.provision_device_using_webi(line['provisioning_extension'], device_ip)