def run_allowip_test(self, allow_ips, rpchost, rpcport):
    '\n        Start a node with rpcallow IP, and request getnetworkinfo\n        at a non-localhost IP.\n        '
    self.log.info(('Allow IP test for %s:%d' % (rpchost, rpcport)))
    base_args = (['-disablewallet', '-nolisten'] + [('-rpcallowip=' + x) for x in allow_ips])
    self.nodes[0].rpchost = None
    self.start_nodes([base_args])
    node = get_rpc_proxy(rpc_url(get_datadir_path(self.options.tmpdir, 0), 0, ('%s:%d' % (rpchost, rpcport))), 0, coveragedir=self.options.coveragedir)
    node.getnetworkinfo()
    self.stop_nodes()
Start a node with rpcallow IP, and request getnetworkinfo
at a non-localhost IP.
def run_allowip_test(self, allow_ips, rpchost, rpcport):
    '\n        Start a node with rpcallow IP, and request getnetworkinfo\n        at a non-localhost IP.\n        '
    self.log.info(('Allow IP test for %s:%d' % (rpchost, rpcport)))
    base_args = (['-disablewallet', '-nolisten'] + [('-rpcallowip=' + x) for x in allow_ips])
    self.nodes[0].rpchost = None
    self.start_nodes([base_args])
    node = get_rpc_proxy(rpc_url(get_datadir_path(self.options.tmpdir, 0), 0, ('%s:%d' % (rpchost, rpcport))), 0, coveragedir=self.options.coveragedir)
    node.getnetworkinfo()
    self.stop_nodes()