def _mock_response(self):

        return flexmock(raise_for_status=lambda: None)
Create a mock response with 'raise_for_status' method
dataset/ETHPy150Open smore-inc/tinys3/tinys3/tests/test_upload_request.py/TestUploadRequest._mock_response