'``FigConfiguration._parse_mem_limit`` returns an ``int``
representing the bytes memory limit for a container when given a valid
configuration.'

def test_valid_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)
    limit = parser._parse_mem_limit(u'postgres', config[u'postgres'][u'mem_limit'])
    self.assertEqual(limit, 100000000)
