'A single fig application config is not valid if the "ports" key
is present and the value is not a string in "host:container" format.
If an invalid ports config is detected, ``ConfigurationError``
is raised.'

def test_invalid_fig_config_malformed_ports(self):

    config = {u'wordpress': {u'environment': {u'WORDPRESS_ADMIN_PASSWORD': u'admin'}, u'volumes': [u'/var/www/wordpress'], u'image': u'sample/wordpress', u'ports': [u'8080,80']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'wordpress'    has    a    config    error.    'ports'    must    be    list    of    string    values    in    the    form    of    'host_port:container_port'."
    self.assertEqual(exception.message, error_message)
