def METHOD_NAME():
    """
    Check current memory value and memory value in virsh dominfo result
    """
    result = virsh.dominfo(
        vm_name, ignore_status=False, debug=True).stdout_text.strip()
    dominfo_dict = libvirt_misc.convert_to_dict(
        result, pattern=r'(\S+ \S+):\s+(\S+)')
    if dominfo_dict["Max memory"] != str(mem_value):
        test.fail("Memory value should be %s instead of %s " % (
            mem_value, dominfo_dict["Max memory"]))
    if dominfo_dict["Used memory"] != str(current_mem):
        test.fail("Current memory should be %s instead of %s " % (
            current_mem, dominfo_dict["Used memory"]))