'A ``ConfigurationError`` is raised if the "volumes" key of a fig
config is a list containing multiple entries. Only a maximum of
one volume per container is currently supported.'

def test_invalid_fig_config_multiple_volumes(self):

    config = {u'postgres': {u'environment': {u'PG_ROOT_PASSWORD': u'clusterhq'}, u'image': u'sample/postgres', u'ports': [u'54320:5432'], u'volumes': [u'/var/lib/postgres', u'/var/www/data']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    Only    one    volume    per    application    is    supported    at    this    time."
    self.assertEqual(exception.message, error_message)
