          """
          OPTIONS requests to ListCreateAPIView should return metadata
          """
          request = factory.options('/')
          response = self.view(request).render()
          expected = {
              'parses': [
                  'application/json',
                  'application/x-www-form-urlencoded',
                  'multipart/form-data'
 
</s> remove         response = self.view(request).render()
 </s> add         with self.assertNumQueries(0):
            response = self.view(request).render() </s> remove         response = self.view(request).render()
 </s> add         with self.assertNumQueries(0):
            response = self.view(request).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()
        with self.assertNumQueries(0):
            response = self.view(request).render()
          """
          OPTIONS requests to ListCreateAPIView should return metadata
          """
          request = factory.options('/')
        with self.assertNumQueries(0):
            response = self.view(request).render()
          expected = {
              'parses': [
                  'application/json',
                  'application/x-www-form-urlencoded',
                  'multipart/form-data'
keep keep keep keep replace keep keep keep keep keep
 Add some simple numQueries tests. 
rest_framework/tests/generics.py