'``deployment_from_configuration`` returns a set of ``Node``
objects. One for each key in the supplied nodes dictionary.'

def test_set_on_success(self):

    manifestation = Manifestation(dataset=Dataset(dataset_id=dataset_id_from_name(u'mysql-hybridcluster'), metadata=pmap({u'name': u'mysql-hybridcluster'})), primary=True)
    applications = {u'mysql-hybridcluster': Application(name=u'mysql-hybridcluster', image=DockerImage.from_string(u'flocker/mysql'), volume=AttachedVolume(manifestation=manifestation, mountpoint=FilePath('/var/lib/db')))}
    node_uuid = uuid4()
    hostname = u'172.16.255.250'
    result = deployment_from_configuration(DeploymentState(nodes=[NodeState(hostname=hostname, uuid=node_uuid)]), dict(version=1, nodes={hostname: [u'mysql-hybridcluster']}), applications)
    expected = set([Node(uuid=node_uuid, applications=applications, manifestations={manifestation.dataset_id: manifestation})])
    self.assertEqual(expected, result)
