'``Configuration.applications`` raises a
``ConfigurationError`` if the application_configuration contains
unrecognised Application attribute names.'

def test_error_on_extra_application_attributes(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=u'foo/bar:baz', foo=u'bar', baz=u'quux')})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Unrecognised    keys:    baz,    foo.", exception.message)
