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

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