def test_index_exists(): dir = './test_index' Index.create(dir) assert Index.exists(dir)
def test_index_does_not_exist(): assert not Index.exists('wrong')