'A ``ConfigurationError`` is raised if an entry in a list of
\'environment\' values is not a string.'

def test_invalid_fig_config_environment_list_item(self):

    config = {u'postgres': {u'environment': [27014], u'image': u'sample/postgres', u'ports': [u'54320:5432'], u'volumes': [u'/var/lib/postgres'], u'links': [u'wordpress']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'environment'    value    '27014'    must    be    a    string;    got    type    'int'."
    self.assertEqual(exception.message, error_message)
