      def test_delete_instance_view(self):
          """
          DELETE requests to InstanceAPIView should delete an object.
          """
          view = InstanceView.as_view()
          request = factory.delete('/1')
          response = view(request, pk=1).render()
          self.assertEquals(response.status_code, status.HTTP_204_NO_CONTENT)
          self.assertEquals(response.content, '')
          ids = [obj.id for obj in self.objects.all()]
 
</s> remove         response = view(request, pk=1).render()
 </s> add         response = self.view(request, pk=1).render() </s> remove         view = InstanceView.as_view()
 </s> add  </s> remove         response = view(request, pk=1).render()
 </s> add         response = self.view(request, pk=1).render()
      def test_delete_instance_view(self):
          """
          DELETE requests to InstanceAPIView should delete an object.
          """

          request = factory.delete('/1')
          response = view(request, pk=1).render()
          self.assertEquals(response.status_code, status.HTTP_204_NO_CONTENT)
          self.assertEquals(response.content, '')
          ids = [obj.id for obj in self.objects.all()]
keep keep keep keep replace keep keep keep keep keep
 Add more tests for generic views 
rest_framework/tests/generics.py