def METHOD_NAME():
    """
    Do parent snapshot test
    """
    cmd_result = virsh.snapshot_parent(vm_name, snap_parent_opt,
                                       debug=True,
                                       readonly=readonly)
    # check status
    if pstatus_error == "yes":
        if cmd_result.exit_status == 0:
            test.fail("Unexpected success")
        else:
            logging.info("Run failed as expected:%s", cmd_result.stderr)
    elif cmd_result.exit_status != 0:
        test.fail("Run failed with right command:%s" %
                  cmd_result.stderr)
    else:
        parent_snapshot_check(cmd_result.stdout.strip())