Skip to content

Commit f3c855f

Browse files
committed
Update collection.py
1 parent 6bb1142 commit f3c855f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/collection/collection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ def test_create_data():
3131
assert child1.natural_name == "data"
3232

3333

34+
def test_looping_collection():
35+
col = wt.Collection()
36+
child1 = col.create_data()
37+
assert isinstance(list(col.values())[0], type(child1))
38+
39+
3440
if __name__ == "__main__":
3541
test_create_collection()
3642
test_create_data()
43+
test_looping_collection()

0 commit comments

Comments
 (0)