code: def _new_mock_response(self, response, file_path):
          '''Return a new mock Response with the content.'''
          mock_response = copy.copy(response)
  
          mock_response.body = Body(open(file_path, 'rb'))
          mock_response.fields = NameValueRecord()
  
          for name, value in response.fields.get_all():
              mock_response.fields.add(name, value)
  
          mock_response.fields['Content-Type'] = 'text/html; charset="utf-8"'
  
          return mock_responsf _new_mock_response(self, response, file_path):
          '''Return a new mock Response with the content.'''
          mock_response = copy.copy(response)
  
          mock_response.body = Body(open(file_path, 'rb'))
          mock_response.fields = NameValueRecord()
  
          for name, value in response.fields.get_all():
              mock_response.fields.add(name, value)
  
          mock_response.fields['Content-Type'] = 'text/html; charset="utf-8"'
  
          return mock_response
docs: Return a new mock Response with the content.