          """
          content = {'text': 'foobar'}
          request = factory.put('/', json.dumps(content),
                                content_type='application/json')
          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):
          """
 
</s> remove         response = self.view(request, pk=5).render()
 </s> add         with self.assertNumQueries(4):
            response = self.view(request, pk=5).render() </s> remove         response = self.slug_based_view(request, slug='test_slug').render()
 </s> add         with self.assertNumQueries(2):
            response = self.slug_based_view(request, slug='test_slug').render() </s> remove         response = self.view(request, pk=1).render()
 </s> add         with self.assertNumQueries(3):
            response = self.view(request, pk=1).render() </s> remove         response = self.view(request, pk=1).render()
 </s> add         with self.assertNumQueries(4):
            response = self.view(request, pk=1).render() </s> remove         response = self.view(request).render()
 </s> add         with self.assertNumQueries(0):
            response = self.view(request).render()
        with self.assertNumQueries(0):
            response = self.view(request).render()
          """
          content = {'text': 'foobar'}
          request = factory.put('/', json.dumps(content),
                                content_type='application/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):
          """
keep keep keep keep replace keep keep keep keep keep
 Add some simple numQueries tests. 
rest_framework/tests/generics.py