'``Configuration.applications`` raises a
``ConfigurationError`` if the volume key is not a dictionary.'

def test_error_on_invalid_volume_yaml(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=u'busybox', volume=u'a    random    string')})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Invalid    volume    specification.    Unexpected    value:    a    random    string", exception.message)
