          """
          view = RootView.as_view()
          content = {'text': 'foobar'}
          request = factory.post('/', json.dumps(content), content_type='application/json')
          response = view(request).render()
          self.assertEquals(response.status_code, status.HTTP_201_CREATED)
          self.assertEquals(response.data, {'id': 4, 'text': u'foobar'})
          created = self.objects.get(id=4)
          self.assertEquals(created.text, 'foobar')
  
 
</s> remove         view = RootView.as_view()
 </s> add  </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).render()
 </s> add         response = self.view(request).render()
        response = self.view(request).render()
          """
          view = RootView.as_view()
          content = {'text': 'foobar'}
          request = factory.post('/', json.dumps(content), content_type='application/json')
        response = self.view(request).render()
          self.assertEquals(response.status_code, status.HTTP_201_CREATED)
          self.assertEquals(response.data, {'id': 4, 'text': u'foobar'})
          created = self.objects.get(id=4)
          self.assertEquals(created.text, 'foobar')
  
keep keep keep keep replace keep keep keep keep keep
 Add more tests for generic views 
rest_framework/tests/generics.py