def test_default_handlers(logger):
    with capturing_stderr_context() as stream:
        logger.warn('Aha!')
        captured = stream.getvalue()
    assert 'WARNING: testlogger: Aha!' in captured
dataset/ETHPy150Open getlogbook/logbook/tests/test_handlers.py/test_default_handlers/original