def will_response(self, response):
        with open(self._api_file(response)) as f:
            self.request.return_value = api_client.XmlToDict(f.read())
Stub by returning the response
dataset/ETHPy150Open plesk/letsencrypt-plesk/letsencrypt_plesk/tests/api_mock.py/PleskApiMock.will_response