def METHOD_NAME(self):
    """test simple event handler with timeout"""
    task = task_self()
    eh = TestHandler()
    # init worker
    worker = task.shell("/bin/sleep 3", handler=eh)
    try:
        task.resume(2)
    except TimeoutError:
        pass
    else:
        self.fail("did not detect timeout")
    eh.do_asserts_timeout()