def METHOD_NAME(self):
    pdf_data = self.read_test_file("test.pdf", mode="rb", as_b64=True)
    mock_pdf_get_xml_files = mock.patch.object(
        type(self.env["pdf.helper"]), "pdf_get_xml_files"
    )
    mock_parse_xml_order = mock.patch.object(
        type(self.wiz_model), "parse_xml_order"
    )
    with mock_pdf_get_xml_files as m1, mock_parse_xml_order as m2:
        m1.return_value = {
            "test.pdf": etree.fromstring(
                b"<?xml version='1.0' encoding='utf-8'?><root><foo>baz</foo></root>"
            )
        }
        fake_parsed_order = {"got": "a wonderful order"}
        m2.return_value = fake_parsed_order
        res = self.wiz_model.parse_pdf_order(pdf_data)
        m1.assert_called()
        m2.assert_called()
        self.assertEqual(res, fake_parsed_order)