def test_read_exc(): wn = path.join(LOCAL_DATA_DIR, 'wordnet') exc = read_exc(path.join(wn, 'verb.exc')) assert exc['was'] == ('be',)
def test_read_exc(path): with (path / 'wordnet' / 'verb.exc').open() as file_: exc = read_exc(file_) assert exc['was'] == ('be', )
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',)
def test_read_exc(package): with package.open(('wordnet', 'verb.exc')) as file_: exc = read_exc(file_) assert exc['was'] == ('be',)
def test_read_exc(package): with package.open(('wordnet', 'verb.exc')) as file_: exc = read_exc(file_) assert exc['was'] == ('be', )