def mocked_handle_init(self, origin, host=None, port=None, socket=None, server_id=None, heartbeat=False, watch_server=True):
    method_calls.append(origin)
    return original_method(self, origin, host, port, socket, server_id, heartbeat, watch_server)
def mocked_handle_init(self, origin, host=None, port=None, socket=None, server_id=None, heartbeat=False, watch_server=True):
    method_calls.append(origin)
    return original_method(self, origin, host, port, socket, server_id, heartbeat, watch_server)