def TestEvents(o, handler):
    sessions = []
    handler._Init()
    try:
        for i in range(3):
            session = o.Start()
            sessions.append(session)
        time.sleep(0.5)
    finally:
        for session in sessions:
            o.Stop(session)
        handler._DumpFireds()
        handler.close()
def TestEvents(o, handler):
    sessions = []
    handler._Init()
    try:
        for i in range(3):
            session = o.Start()
            sessions.append(session)
        time.sleep(0.5)
    finally:
        for session in sessions:
            o.Stop(session)
        handler._DumpFireds()
        handler.close()