'A ``ConfigurationError`` is raised if any value in a fig application\'s
"volumes" list is not of ``types.StringTypes``.'

def test_invalid_fig_config_volumes_not_stringtypes(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', 1000]}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'volumes'    values    must    be    string;    got    type    'int'."
    self.assertEqual(exception.message, error_message)
