def test_ior_network(self, nodes_list, pipes_list): pipes_list1, pipes_list2 = _split_lists(pipes_list, 2) network_a = ZeroNetwork(pipes_list1) network_b = ZeroNetwork(pipes_list2) network_c = network_a.copy() network_c |= network_b assert set( network_c.pipes) == set(network_a.pipes) | set(network_b.pipes)
def test_eq_network(self, pipes_list): network_a = ZeroNetwork(pipes_list) network_b = network_a.copy() assert id(network_a) != id(network_b) assert network_a == network_b