#NEWLINE# def test_unknown_applications( self ) : #NEWLINE# #INDENT# "\n        If application state for local state is unknown, don't do anything.\n        " #NEWLINE# api = ApplicationNodeDeployer ( 'node1.example.com' , docker_client = FakeDockerClient ( ) , network = make_memory_network ( ) ) #NEWLINE# postgres_app = Application ( name = 'postgres-example' , image = DockerImage . from_string ( 'docker/postgres:latest' ) ) #NEWLINE# node = Node ( hostname = api . hostname , applications = { postgres_app } ) #NEWLINE# desired = Deployment ( nodes = [ node ] ) #NEWLINE# node_state = NodeState ( hostname = api . hostname , applications = None ) #NEWLINE# result = api . calculate_changes ( desired , DeploymentState ( nodes = [ node_state ] ) , local_state = NodeLocalState ( node_state = node_state ) ) #NEWLINE# self . assertEqual ( result , sequentially ( changes = [ ] ) )