def test_library(tempdir):
    assert list_probes() in '1x32_buzsaki'

    probe = load_probe('1x32_buzsaki')
    assert probe
    assert probe.channels == list(range(32))

    path = op.join(tempdir, 'test.prb')
    with raises(IOError):
        load_probe(path)

    with open(path, 'w') as f:
        f.write('')
    with raises(KeyError):
        load_probe(path)
dataset/ETHPy150Open kwikteam/phy/phy/electrode/tests/test_mea.py/test_library/swapped operands of `in`