def METHOD_NAME(self):
    """
    Handle XML-RPC method crash wiht generic error
    :return:
    """
    self.rpc_client.token = "the_token"
    exc = Exception("generic error when processing")
    exc.faultCode = 2951
    setattr(self.rpc_client.conn, "uyuni.some_method",
            MagicMock(side_effect=exc))
    with patch("src.modules.uyuni_config.log") as logger:
        with pytest.raises(Exception):
            self.rpc_client("uyuni.some_method")
        mo = getattr(self.rpc_client.conn, "uyuni.some_method")
        assert mo.called
        mo.assert_called_with("the_token")
        assert logger.error.call_args[0] == ('Unable to call RPC function: %s', 'generic error when processing')