(request)
| 1303 | with self.subTest(method=method_name): |
| 1304 | |
| 1305 | async def async_generic_view(request): |
| 1306 | if request.method.lower() != method_name: |
| 1307 | return HttpResponseNotAllowed(method_name) |
| 1308 | return HttpResponse(status=200) |
| 1309 | |
| 1310 | method = getattr(self.request_factory, method_name) |
| 1311 | request = method("/somewhere/") |
nothing calls this directly
no test coverage detected