'Moving an ``Application`` from one node to where the target node is
the same node as currently hosts the application results in a
``Deployment`` instance identical to the one we started with.'

def test_move_application_same_node(self):

    application = Application(name=u'mycontainer', image=DockerImage.from_string(u'busybox'))
    nodes = [Node(hostname=u'192.0.2.1', applications={application.name: application}), Node(hostname=u'192.0.2.2', applications={})]
    original = Deployment(nodes=nodes)
    updated = original.move_application(application, nodes[0])
    self.assertEqual(original, updated)
