def test_node_addrs_already_used(self): assert_report_item_list_equal( config_validators.add_nodes( [ { "name": "node3", "addrs": ["addr03"] }, { "name": "node4", "addrs": ["addr02"] }, { "name": "node5", "addrs": ["addr19"] }, ], [ CNode("node1", [CAddr("addr01", 1)], 1), CNode("node2", [CAddr("addr02", 1)], 2), ], [PNode("node-remote", "addr19")], ), [ fixture.error( report_codes.NODE_ADDRESSES_ALREADY_EXIST, address_list=["addr02", "addr19"], ) ], )
def test_all_more_nodes_more_links(self): assert_report_item_list_equal( config_validators.add_nodes( [ {"name": "node3", "addrs": ["addr03", "addr13"]}, {"name": "node4", "addrs": ["addr04", "addr14"]}, ], self.fixture_coronodes_2_links, [PNode("node-remote", "addr19")], ), [], )