def METHOD_NAME(self):
    network = Network(
        wallet=Wallet(),
        socket_ports=self.create_socket_ports(index=0),
    )
    network.set_to_local()
    self.assertTrue(network.local)
    self.assertEqual('127.0.0.1', network.external_ip)