Skip to content
Browse files

Fixes #63 an error setting the properties dict in nodes and relations…

…hips
  • Loading branch information...
1 parent fd98d19 commit 6526b55b339eb37ad9d2c8f383bf54b2d2973bd4 @versae committed May 17, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 neo4jrestclient/tests.py
View
8 neo4jrestclient/tests.py
@@ -205,6 +205,14 @@ def test_create_relationship_properties(self):
rel = n1.Knows(n2, since=1970)
self.assertEqual(rel.properties, {"since": 1970})
+ def test_set_relationships_properties_numbers_set(self):
+ n1 = self.gdb.node()
+ n2 = self.gdb.node()
+ rel = n1.Knows(n2)
+ properties = {"name": "Jimmy Doe", "age": 30, "active": False}
+ rel.properties = properties
+ self.assertEqual(rel.properties, properties)
+
def test_create_relationship_functional_properties(self):
n1 = self.gdb.nodes.create()
n2 = self.gdb.nodes.create()

0 comments on commit 6526b55

Please sign in to comment.
Something went wrong with that request. Please try again.