Skip to content

Commit f08ec3e

Browse files
committed
Fixed tests for py2
1 parent c54c670 commit f08ec3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/typesystem_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_can_hydrate_node_structure(self):
168168
alice = hydrated(struct)
169169
assert alice.identity == "node/123"
170170
assert alice.labels == {"Person"}
171-
assert alice.keys() == {"name"}
171+
assert set(alice.keys()) == {"name"}
172172
assert alice.get("name") == "Alice"
173173

174174
def test_hydrating_unknown_structure_returns_same(self):
@@ -187,7 +187,7 @@ def test_can_hydrate_in_list(self):
187187
alice, = alice_in_list
188188
assert alice.identity == "node/123"
189189
assert alice.labels == {"Person"}
190-
assert alice.keys() == {"name"}
190+
assert set(alice.keys()) == {"name"}
191191
assert alice.get("name") == "Alice"
192192

193193
def test_can_hydrate_in_dict(self):
@@ -200,7 +200,7 @@ def test_can_hydrate_in_dict(self):
200200
alice = alice_in_dict["foo"]
201201
assert alice.identity == "node/123"
202202
assert alice.labels == {"Person"}
203-
assert alice.keys() == {"name"}
203+
assert set(alice.keys()) == {"name"}
204204
assert alice.get("name") == "Alice"
205205

206206

0 commit comments

Comments
 (0)