  
          # ensure that request stream was consumed by form parser
          assert request.content_type.startswith('multipart/form-data')
          assert response.data == {'a': ['b']}
 
</s> remove             return getattr(self._request, attr)
 </s> add             _request = self.__getattribute__("_request")
            return getattr(_request, attr)
class TestDeepcopy(TestCase):

    def test_deepcopy_works(self):
        request = Request(factory.get('/', secure=False))
        copy.deepcopy(request)
  
          # ensure that request stream was consumed by form parser
          assert request.content_type.startswith('multipart/form-data')
          assert response.data == {'a': ['b']}
class TestDeepcopy(TestCase):

    def test_deepcopy_works(self):
        request = Request(factory.get('/', secure=False))
        copy.deepcopy(request)
keep keep keep add
 Fix infinite recursion with deepcopy on Request (#8684) 
tests/test_request.py