'``deployment_from_configuration`` raises a
``ConfigurationError`` if the version specified is not 1.'

def test_error_on_incorrect_version(self):

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