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