MCPcopy Index your code
hub / github.com/encode/django-rest-framework / test_head_root_view

Method test_head_root_view

tests/test_generics.py:104–111  ·  view source on GitHub ↗

HEAD requests to ListCreateAPIView should return 200.

(self)

Source from the content-addressed store, hash-verified

102 assert response.data == self.data
103
104 def test_head_root_view(self):
105 """
106 HEAD requests to ListCreateAPIView should return 200.
107 """
108 request = factory.head('/')
109 with self.assertNumQueries(1):
110 response = self.view(request).render()
111 assert response.status_code == status.HTTP_200_OK
112
113 def test_post_root_view(self):
114 """

Callers

nothing calls this directly

Calls 3

headMethod · 0.80
renderMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected