HEAD requests to ListCreateAPIView should return 200.
(self)
| 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 | """ |