          # pk fields can not be created on demand, only the database can set th pk for a new object
          request = factory.put('/5', json.dumps(content),
                                content_type='application/json')
          response = self.view(request, pk=5).render()
          self.assertEquals(response.status_code, status.HTTP_200_OK)
          new_obj = self.objects.get(pk=5)
          self.assertEquals(new_obj.text, 'foobar')
  
      def test_put_as_create_on_slug_based_url(self):
          """
 
</s> remove         self.assertEquals(response.status_code, status.HTTP_200_OK)
 </s> add         self.assertEquals(response.status_code, status.HTTP_201_CREATED) </s> remove         self.assertEquals(response.status_code, status.HTTP_200_OK)
 </s> add         self.assertEquals(response.status_code, status.HTTP_201_CREATED) </s> remove 
Eg. Use mixins to build a Resource class, and have a Router class
    perform the binding of http methods to actions for us.
 </s> add 
        self.assertEquals(response.status_code, status.HTTP_201_CREATED)
          # pk fields can not be created on demand, only the database can set th pk for a new object
          request = factory.put('/5', json.dumps(content),
                                content_type='application/json')
          response = self.view(request, pk=5).render()
        self.assertEquals(response.status_code, status.HTTP_201_CREATED)
          new_obj = self.objects.get(pk=5)
          self.assertEquals(new_obj.text, 'foobar')
  
      def test_put_as_create_on_slug_based_url(self):
          """
keep keep keep keep replace keep keep keep keep keep
 PUT as create should return 201.  Fixes #340. 
rest_framework/tests/generics.py