(self)
| 357 | |
| 358 | class MiddlewareTest(TestCase): |
| 359 | def test_request(self): |
| 360 | def get_response(request): |
| 361 | return HttpResponse(str(request.site.id)) |
| 362 | |
| 363 | response = CurrentSiteMiddleware(get_response)(HttpRequest()) |
| 364 | self.assertContains(response, settings.SITE_ID) |
nothing calls this directly
no test coverage detected