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

Method test_get_root_view

tests/test_generics.py:94–102  ·  view source on GitHub ↗

GET requests to ListCreateAPIView should return list of objects.

(self)

Source from the content-addressed store, hash-verified

92 self.view = RootView.as_view()
93
94 def test_get_root_view(self):
95 """
96 GET requests to ListCreateAPIView should return list of objects.
97 """
98 request = factory.get('/')
99 with self.assertNumQueries(1):
100 response = self.view(request).render()
101 assert response.status_code == status.HTTP_200_OK
102 assert response.data == self.data
103
104 def test_head_root_view(self):
105 """

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
renderMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected