Пример #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"}