'``Configuration.applications`` raises a
``ConfigurationError`` if the application_configuration does not
contain all the attributes of an ``Application`` record.'

def test_error_on_missing_application_attributes(self):

    config = dict(applications={u'mysql-hybridcluster': {}}, version=1)
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Missing    'image'    key.", exception.message)
