'A ``ConfigurationError`` is raised if the "environments" key of a fig
application config is not a dictionary or list.'

def test_invalid_fig_config_environment_format(self):

    config = {u'postgres': {u'environment': str(u'PG_ROOT_PASSWORD=clusterhq'), 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'    must    be    a    dictionary    or    list;    got    type    'str'."
    self.assertEqual(exception.message, error_message)
