'A ``ConfigurationError`` is raised if the "links" key of a fig
compatible application config is not a list.'

def test_invalid_fig_config_links_not_list(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/pgsql'], u'links': str(u'wordpress')}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'links'    must    be    a    list;    got    type    'str'."
    self.assertEqual(exception.message, error_message)
