'When doing ``update_node()``, if the given ``NodeState`` has hostname
not in the existing ``DeploymentState`` then just add new
``NodeState`` to new ``DeploymentState``.'

def test_update_node_new(self):

    dataset_id = unicode(uuid4())
    manifestation = Manifestation(dataset=Dataset(dataset_id=dataset_id), primary=True)
    node = NodeState(hostname=u'node1.example.com', applications={u'postgresql-clusterhq': Application(name=u'postgresql-clusterhq', image=DockerImage.from_string(u'image'))}, manifestations={dataset_id: manifestation}, devices={}, paths={})
    another_node = NodeState(hostname=u'node2.example.com', applications={u'site-clusterhq.com': Application(name=u'site-clusterhq.com', image=DockerImage.from_string(u'image'))})
    original = DeploymentState(nodes=[node])
    updated = original.update_node(another_node)
    self.assertEqual((original, updated), (DeploymentState(nodes=[node]), DeploymentState(nodes=[node, another_node])))
