          data = {'text': 'foobar'}
          request = factory.put('/', data, format='json')
          with self.assertNumQueries(0):
              response = self.view(request).render()
          self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
          self.assertEqual(response.data, {"detail": 'Method "PUT" not allowed.'})
  
      def test_delete_root_view(self):
          """
          DELETE requests to ListCreateAPIView should not be allowed
          """
 
</s> remove         self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
        self.assertEqual(response.data, {"detail": 'Method "POST" not allowed.'})
 </s> add         assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
        assert response.data == {"detail": 'Method "POST" not allowed.'} </s> remove         self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
        self.assertEqual(response.data, {"detail": 'Method "DELETE" not allowed.'})
 </s> add         assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
        assert response.data == {"detail": 'Method "DELETE" not allowed.'} </s> remove         self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(response.data, self.data[0])
 </s> add         assert response.status_code == status.HTTP_200_OK
        assert response.data == self.data[0] </s> remove         self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
 </s> add         assert response.status_code == status.HTTP_404_NOT_FOUND </s> remove         self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
 </s> add         assert response.status_code == status.HTTP_404_NOT_FOUND
        assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
        assert response.data == {"detail": 'Method "PUT" not allowed.'}
          data = {'text': 'foobar'}
          request = factory.put('/', data, format='json')
          with self.assertNumQueries(0):
              response = self.view(request).render()
        assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
        assert response.data == {"detail": 'Method "PUT" not allowed.'}
        assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
        assert response.data == {"detail": 'Method "PUT" not allowed.'}
  
      def test_delete_root_view(self):
          """
          DELETE requests to ListCreateAPIView should not be allowed
          """
keep keep keep keep replace replace keep keep keep keep keep
 converted test asserts of generics-test to pytest 
tests/test_generics.py