Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tests/neo4j/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,27 @@ def test_should_echo_nested_map(self):
self.create_driver_and_session()
self.verify_can_echo(types.CypherMap(test_maps))

def test_should_echo_list_of_maps(self):
test_list = [
types.CypherMap({
"a": types.CypherInt(1),
"b": types.CypherInt(2)
}),
types.CypherMap({
"c": types.CypherInt(3),
"d": types.CypherInt(4)
})
]
self.create_driver_and_session()
self.verify_can_echo(types.CypherList(test_list))

def test_should_echo_map_of_lists(self):
test_map = {
'a': types.CypherList([types.CypherInt(1)]),
'b': types.CypherList([types.CypherInt(2)])
}
self.create_driver_and_session()
self.verify_can_echo(types.CypherMap(test_map))

# def test_path(self):
# todo: need to implement the cypher path type to do this test.