(self, tdata)
| 14 | assert f.request.headers["myheader"] == "value" |
| 15 | |
| 16 | def test_custom_contentviews(self, tdata): |
| 17 | with taddons.context() as tctx: |
| 18 | tctx.script(tdata.path("../examples/addons/contentview.py")) |
| 19 | swapcase = contentviews.registry["swapcase"] |
| 20 | result = swapcase.prettify(b"<html>Test!</html>", contentviews.Metadata()) |
| 21 | assert "tEST!" in result |
| 22 | |
| 23 | def test_modify_form(self, tdata): |
| 24 | with taddons.context() as tctx: |