def METHOD_NAME(self, state_line):
    if 'is idle' in state_line:
        return PRINTER_STATUS_IDLE
    elif 'printing' in state_line:
        return PRINTER_STATUS_PROCESSING
    elif 'disabled' in state_line:
        return PRINTER_STATUS_DISABLED
    return PRINTER_STATUS_UNKNOWN