def test__copy__(self): n1 = NodeData(0) n2 = n1.__copy__() assert n1.comper(n2) n1 = NodeData(0, (0, 1, 2)) n2 = n1.__copy__() assert n1.comper(n2)
def test_comper(self): node1 = NodeData(0) node2 = NodeData(0) assert node1.comper(node2) assert not node1.comper({123}) node1.setLocation((0, 1, 2)) assert not node1.comper(node2) node2.setLocation((0, 1, 2)) assert node1.comper(node2) node2.setLocation((0, 1, 3)) assert not node1.comper(node2)