'``ApplicationNodeDeployer.calculate_changes`` does not specify
that an application must be started if the desired changes apply
to a different node.'

def test_only_this_node(self):

    api = ApplicationNodeDeployer(u'node.example.com', docker_client=FakeDockerClient())
    application = Application(name=u'mysql-hybridcluster', image=DockerImage(repository=u'clusterhq/flocker', tag=u'release-14.0'))
    nodes = frozenset([Node(hostname=u'node1.example.net', applications=frozenset([application]))])
    desired = Deployment(nodes=nodes)
    result = api.calculate_changes(desired_configuration=desired, current_cluster_state=EMPTY_STATE, local_state=empty_node_local_state(api))
    expected = sequentially(changes=[])
    self.assertEqual(expected, result)
