title: Django test RequestFactory vs Client
body: <p>I am trying to decide whether I should use Django's <code>Client</code> or <code>RequestFactory</code> to test my views.</p>
  
  <p>I am creating my server using DjangoRESTFramework and it's really simple, so far:</p>
  
  <pre><code>class SimpleModelList(generics.ListCreateAPIView):
      """
      Retrieve list of all route_areas or create a new one.
      """
      queryset = SimpleModel.objects.all()
      serializer_class = SimpleModelSerializer
      filter_backends = (IsOwnerFilterBackend,)
  
      def perform_create(self, serializer):
          serializer.save(owner=self.request.user)
  </code></pre>
  
  <p>What are the differences between testing with Django's <code>Client</code> and <code>RequestFactory</code> and which approach is more suited for testing a REST server (if there is any difference besides liking one better)?</p>
  
  <p>Should I create tests with both so as to provide a better coverage for my system?</p>