'A ``ConfigurationError`` is raised if in a fig application config, the
"links" key contains an application name that has a hyphen.'

def test_invalid_fig_config_hyphenated_link(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:wordpress-bad']}, u'wordpress': {u'image': u'sample/wordpress', u'ports': [u'8080:8080']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error:    Link    aliases    must    be    alphanumeric."
    self.assertEqual(exception.message, error_message)
