'If application state for local state is unknown, don\'t do anything.'

def test_unknown_applications(self):

    api = ApplicationNodeDeployer(u'node1.example.com', docker_client=FakeDockerClient())
    postgres_app = Application(name=u'postgres-example', image=DockerImage.from_string(u'docker/postgres:latest'))
    node = Node(hostname=api.hostname, applications={postgres_app})
    desired = Deployment(nodes=[node])
    node_state = NodeState(hostname=api.hostname, applications=None)
    result = api.calculate_changes(desired, DeploymentState(nodes=[node_state]), local_state=NodeLocalState(node_state=node_state))
    self.assertEqual(result, sequentially(changes=[]))
