Skip to content

Commit afd93d5

Browse files
committed
tweak to storage hierarchy tests
1 parent 6061c3b commit afd93d5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

zarr/tests/test_storage.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,16 @@ def test_iterators(self):
166166
eq(set(), set(store.values()))
167167
eq(set(), set(store.items()))
168168

169-
store['a'] = b'xxx'
170-
store['b'] = b'yyy'
171-
store['c/d'] = b'zzz'
172-
173-
eq(3, len(store))
174-
eq({'a', 'b', 'c/d'}, set(store))
175-
eq({'a', 'b', 'c/d'}, set(store.keys()))
176-
eq({b'xxx', b'yyy', b'zzz'}, set(store.values()))
177-
eq({('a', b'xxx'), ('b', b'yyy'), ('c/d', b'zzz')},
169+
store['a'] = b'aaa'
170+
store['b'] = b'bbb'
171+
store['c/d'] = b'ddd'
172+
store['c/e/f'] = b'fff'
173+
174+
eq(4, len(store))
175+
eq({'a', 'b', 'c/d', 'c/e/f'}, set(store))
176+
eq({'a', 'b', 'c/d', 'c/e/f'}, set(store.keys()))
177+
eq({b'aaa', b'bbb', b'ddd', b'fff'}, set(store.values()))
178+
eq({('a', b'aaa'), ('b', b'bbb'), ('c/d', b'ddd'), ('c/e/f', b'fff')},
178179
set(store.items()))
179180

180181
def test_nbytes_stored(self):

0 commit comments

Comments
 (0)