Esempio n. 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"}
Esempio n. 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"}
Esempio n. 3
0
 def test_can_add_label(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}
Esempio n. 4
0
 def test_can_add_label(self):
     node = Node("Person", name="Alice")
     node.add_label("Employee")
     assert node.labels() == {"Person", "Employee"}