          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')
  
      def test_put_root_view(self):
          """
 
</s> remove         self.assertEquals(response.data, {'id': 4, 'text': u'foobar'})
 </s> add         self.assertEquals(response.data, {'id': 4, 'text': 'foobar'}) </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded' </s> remove             'detail': u'JSON parse error - No JSON object could be decoded'
 </s> add             'detail': 'JSON parse error - No JSON object could be decoded'
        self.assertEquals(response.data, {'id': 4, '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': 'foobar'})
          created = self.objects.get(id=4)
          self.assertEquals(created.text, 'foobar')
  
      def test_put_root_view(self):
          """
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/tests/generics.py