'``deployment_from_configuration`` raises a
``ConfigurationError`` if the deployment_configuration does not
contain an ``u"version"`` key.'

def test_error_on_missing_version_key(self):

    config = dict(nodes={})
    exception = self.assertRaises(ConfigurationError, deployment_from_configuration, DeploymentState(), config, set())
    self.assertEqual(u"Deployment    configuration    has    an    error.    Missing    'version'    key.", exception.message)
