def METHOD_NAME(self):
    with patch("karrio.mappers.dhl_poland.proxy.lib.request") as mock:
        mock.return_value = ErrorResponseXML
        parsed_response = (
            karrio.Tracking.fetch(self.TrackingRequest).from_(gateway).parse()
        )
        self.assertListEqual(lib.to_dict(parsed_response), ParsedErrorResponse)