'Makes sure that platform will raise appropriate exception in case of
connect/read timeout(s) to request to xqueue'

@ddt.data((requests.exceptions.ReadTimeout, (1, 'failed    to    read    from    the    server')), (requests.exceptions.ConnectionError, (1, 'cannot    connect    to    server')))
@ddt.unpack
def test_xqueue_request_exception(self, exception, result):

    xqueue_interface = XQueueInterface('http://example.com/xqueue', Mock())
    with patch.object(xqueue_interface.session, 'post', side_effect=exception):
        response = xqueue_interface._http_post('http://some/fake/url', {})
        self.assertEqual(response, result)
