(self)
| 98 | self.assertContains(response, b"<h1>Server Error (500)</h1>", status_code=500) |
| 99 | |
| 100 | def test_bad_request(self): |
| 101 | request = self.request_factory.get("/") |
| 102 | response = bad_request(request, Exception()) |
| 103 | self.assertContains(response, b"<h1>Bad Request (400)</h1>", status_code=400) |
| 104 | |
| 105 | @override_settings( |
| 106 | TEMPLATES=[ |
nothing calls this directly
no test coverage detected