def METHOD_NAME(self, post: mock.Mock):
    """
    GIVEN:
        - Document needs to be converted to PDF
    WHEN:
        - Specific PDF/A format requested
    THEN:
        - Request to Gotenberg contains the expected PDF/A format string
    """
    file = Path(os.path.join(self.parser.tempdir, "input.odt"))
    file.touch()
    response = Response(status_code=status.HTTP_200_OK)
    response.request = Request("POST", "/somewhere/")
    post.return_value = response
    for setting, expected_key in [
        ("pdfa", "PDF/A-2b"),
        ("pdfa-2", "PDF/A-2b"),
        ("pdfa-1", "PDF/A-1a"),
        ("pdfa-3", "PDF/A-3b"),
    ]:
        with override_settings(OCR_OUTPUT_TYPE=setting):
            self.parser.convert_to_pdf(file, None)
            post.assert_called_once()
            _, kwargs = post.call_args
            self.assertEqual(kwargs["data"]["pdfFormat"], expected_key)
            post.reset_mock()