______________ TestAttachmentsApi.test_html_upload_stored_inline _______________ self = api = def test_html_upload_stored_inline(self, api): html = "

Invoice %RandomInvoiceNumber% for %FirstName%

" 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 = .status_code