'``deployment_from_configuration`` raises a ``ValueError`` if the
deployment_configuration refers to a non-existent application.'

def test_error_on_unrecognized_application_name(self):

    applications = {u'mysql-hybridcluster': Application(name=u'mysql-hybridcluster', image=DockerImage(repository=u'flocker/mysql', tag=u'v1.0.0'))}
    exception = self.assertRaises(ConfigurationError, deployment_from_configuration, DeploymentState(), dict(version=1, nodes={u'172.16.255.250': [u'site-hybridcluster']}), applications)
    self.assertEqual(u'Node    172.16.255.250    has    a    config    error.    Unrecognised    application    name:    site-hybridcluster.', exception.message)
