(self)
| 364 | pickle.dumps(unpickled_response) |
| 365 | |
| 366 | def test_headers(self): |
| 367 | response = TemplateResponse( |
| 368 | self.factory.get("/"), |
| 369 | "first/test.html", |
| 370 | {"value": 123, "fn": datetime.now}, |
| 371 | headers={"X-Foo": "foo"}, |
| 372 | ) |
| 373 | self.assertEqual(response.headers["X-Foo"], "foo") |
| 374 | |
| 375 | |
| 376 | @modify_settings( |
nothing calls this directly
no test coverage detected