title: Django Rest Framework APIRequestFactory request object has no attribute 'query_params'
body: <p>Lets say I have this APIView</p>
  
  <pre><code>class Dummy(APIView):
      def get(self, request):
          return Response(data=request.query_params.get('uuid'))
  </code></pre>
  
  <p>To test it, I need to create a request object to pass into the <code>get</code> function</p>
  
  <pre><code>def test_dummy(self):
      from rest_framework.test import APIRequestFactory
      factory = APIRequestFactory()
      request = factory.get('/?uuid=abcd')
      DummyView().get(request)
  </code></pre>
  
  <p>It complains about <code>AttributeError: 'WSGIRequest' object has no attribute 'query_params'</code></p>
  
  <p>Having a closer look, the factory creates a <code>WSGIRequest</code> instance instead of a DRF version <code>&lt;class 'rest_framework.request.Request'&gt;</code>.</p>
  
  <pre><code>&gt;&gt;&gt; from rest_framework.test import APIRequestFactory
  &gt;&gt;&gt; factory = APIRequestFactory()
  &gt;&gt;&gt; request = factory.get('/')
  &gt;&gt;&gt; request.__class__
  &lt;class 'django.core.handlers.wsgi.WSGIRequest'&gt;
  </code></pre>