@patch('koi.configure.options')
def test_syslog_on(options):
    options.syslog_host = 'localhost'
    logger = logging.getLogger()
    logger.handlers = []
    configure_syslog()
    assert len(logger.handlers) == 1
    assert isinstance(logger.handlers[0], SysLogHandler)
dataset/ETHPy150Open openpermissions/koi/tests/unit/ssl/test_configure.py/test_syslog_on/original