def when_i_associate_the_extension_group1_with_a_fake_line(step, exten, context):
    extension = extension_helper.find_extension_by_exten_context(exten, context)
    world.response = action.associate_extension(FAKE_ID, extension.id)
def when_i_associate_a_fake_extension_to_sip_line_group1(step, sip_username):
    line = line_sip_helper.get_by_username(sip_username)
    world.response = action.associate_extension(line['id'], FAKE_ID)
def _associate_extension_to_line(exten, context, sip_username):
    extension = extension_helper.find_extension_by_exten_context(exten, context)
    line = line_sip_helper.get_by_username(sip_username)
    return action.associate_extension(line['id'], extension.id)