______________ TestAttachmentsApi.test_html_upload_stored_inline _______________

self = <tests.test_api_attachments_phones_suppression_settings_logs.TestAttachmentsApi object at 0x7f10ffd76190>
api = <starlette.testclient.TestClient object at 0x7f10f9d57790>

    def test_html_upload_stored_inline(self, api):
        html = "<p>Invoice %RandomInvoiceNumber% for %FirstName%</p>"
        r = self._upload(api, "inv.html", html.encode(), "text/html",
                         name="Inline Invoice", description="per-recipient html")
>       assert r.status_code in (200, 201), r.text
E       AssertionError: {"detail":"HTML rejected: Unsubstituted variables remain: ['FirstName', 'RandomInvoiceNumber']"}
E       assert 400 in (200, 201)
E        +  where 400 = <Response [400 Bad Request]>.status_code
