def METHOD_NAME(self):
    # read configuration, test default value, expecting unlimited memory cap
    result = self.conn.execute_command("GRAPH.CONFIG", "GET", "QUERY_MEM_CAPACITY")
    query_mem_capacity = result[1]
    self.env.assertEquals(query_mem_capacity, 0)
    # update configuration, set memory limit to 1MB
    MB = 1024*1024
    self.conn.execute_command("GRAPH.CONFIG", "SET", "QUERY_MEM_CAPACITY", MB)
    # re-read configuration
    result = self.conn.execute_command("GRAPH.CONFIG", "GET", "QUERY_MEM_CAPACITY")
    query_mem_capacity = result[1]
    self.env.assertEquals(query_mem_capacity, MB)