'A ``ConfigurationError`` is raised if the parsed "ports" string
in a fig application config is not a pair of integer values.'

def test_invalid_fig_config_ports_not_integers(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'foo:bar']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'wordpress'    has    a    config    error.    'ports'    value    'foo:bar'    could    not    be    parsed    in    to    integer    values."
    self.assertEqual(exception.message, error_message)
