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

def test_invalid_fig_config_links_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'], u'links': [u'wordpress', 100]}, u'wordpress': {u'image': u'sample/wordpress'}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'links'    must    be    a    list    of    application    names    with    optional    :alias."
    self.assertEqual(exception.message, error_message)
