#NEWLINE# def test_no_proxy_if_node_state_unknown( self ) : #NEWLINE# #INDENT# '\n        ``ApplicationNodeDeployer.calculate_changes`` does not attempt to\n        create a proxy to a node whose state is unknown, since the\n        destination IP is unavailable.\n        ' #NEWLINE# api = ApplicationNodeDeployer ( '192.168.1.1' , node_uuid = uuid4 ( ) , docker_client = FakeDockerClient ( ) , network = make_memory_network ( ) ) #NEWLINE# expected_destination_port = 1001 #NEWLINE# port = Port ( internal_port = 3306 , external_port = self ) #NEWLINE# application = Application ( name = b'mysql-hybridcluster' , image = DockerImage ( repository = 'clusterhq/mysql' , tag = 'release-14.0' ) , ports = frozenset ( [ port ] ) ) #NEWLINE# desired = Deployment ( nodes = [ Node ( uuid = uuid4 ( ) , applications = [ application ] ) ] ) #NEWLINE# result = api . calculate_changes ( desired_configuration = desired , current_cluster_state = EMPTY_STATE , local_state = empty_node_local_state ( api ) ) #NEWLINE# expected = sequentially ( changes = [ ] ) #NEWLINE# self . assertEqual ( expected , result )