def map_lp_status(lp_status):
    """Map a launchpad status to a storyboard priority.

    """
    if lp_status in ('Unknown', 'New', 'Confirmed', 'Triaged',
        'Incomplete (with response)', 'Incomplete (without response)'):
        return 'todo'
    elif lp_status in ('Opinion', 'Invalid', "Won't Fix", 'Expired'):
        return 'invalid'
    elif lp_status == 'In Progress':
        return 'inprogress'
    elif lp_status in ('Fix Committed', 'Fix Released'):
        return 'merged'
    return 'invalid'
