예제 #1
0
 def test_add_label_is_idempotent(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}
예제 #2
0
 def test_add_label_is_idempotent(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}
예제 #3
0
 def test_can_add_label(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}
예제 #4
0
 def test_can_add_label(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}