def test_invalid_level(framework):
    try:
        txaio.start_logging(level='foo')
        assert False, "should get exception"
    except __HOLE__ as e:
        assert 'Invalid log level' in str(e)
dataset/ETHPy150Open crossbario/txaio/test/test_logging.py/test_invalid_level