'``FigConfiguration._parse`` raises a ``ConfigurationError`` if a
mem_limit config is specified that is not an integer.'

def test_invalid_fig_config_mem_limit(self):

    config = {u'postgres': {u'image': u'sample/postgres', u'environment': {u'PG_SCHEMA_NAME': u'example_database', u'PG_PGUSER_PASSWORD': u'clusterhq'}, u'mem_limit': '100000000'}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser._parse)
    error_message = u"Application    'postgres'    has    a    config    error.    mem_limit    must    be    an    integer;    got    type    'str'."
    self.assertEqual(exception.message, error_message)
