Exemplo n.º 1
0
def test_read_exc():
    wn = path.join(LOCAL_DATA_DIR, 'wordnet')
    exc = read_exc(path.join(wn, 'verb.exc'))
    assert exc['was'] == ('be',)
Exemplo n.º 2
0
def test_read_exc(path):
    with (path / 'wordnet' / 'verb.exc').open() as file_:
        exc = read_exc(file_)
    assert exc['was'] == ('be', )
Exemplo n.º 3
0
def test_read_exc(path):
    if path is not None:
        with (path / 'wordnet' / 'verb.exc').open() as file_:
            exc = read_exc(file_)
        assert exc['was'] == ('be',)
Exemplo n.º 4
0
def test_read_exc(package):
    with package.open(('wordnet', 'verb.exc')) as file_:
        exc = read_exc(file_)
    assert exc['was'] == ('be',)
Exemplo n.º 5
0
def test_read_exc(package):
    with package.open(('wordnet', 'verb.exc')) as file_:
        exc = read_exc(file_)
    assert exc['was'] == ('be', )