          able to create new objects.
          """
          data = {'text': 'foo'}
          filtered_out_pk = BasicModel.objects.filter(text='filtered out')[0].pk
          request = factory.put('/{0}'.format(filtered_out_pk), data, format='json')
          response = self.view(request, pk=filtered_out_pk).render()
          assert response.status_code == status.HTTP_404_NOT_FOUND
  
      def test_patch_cannot_create_an_object(self):
          """
 
</s> remove         request = factory.patch('/{0}'.format(obj.pk), {'number_value': 101}, format='json')
 </s> add         request = factory.patch('/{}'.format(obj.pk), {'number_value': 101}, format='json') </s> remove         request = factory.patch('/{0}'.format(obj.pk), {'number_value': 98}, format='json')
 </s> add         request = factory.patch('/{}'.format(obj.pk), {'number_value': 98}, format='json') </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b'' </s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove class BaseTokenAuthTests(object):
 </s> add class BaseTokenAuthTests:
        request = factory.put('/{}'.format(filtered_out_pk), data, format='json')
          able to create new objects.
          """
          data = {'text': 'foo'}
          filtered_out_pk = BasicModel.objects.filter(text='filtered out')[0].pk
        request = factory.put('/{}'.format(filtered_out_pk), data, format='json')
          response = self.view(request, pk=filtered_out_pk).render()
          assert response.status_code == status.HTTP_404_NOT_FOUND
  
      def test_patch_cannot_create_an_object(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_generics.py