def __init__(self, expected):
    self.log = None
    self.expected = expected
    self.event = 0
    self._closed = False
def __init__(self, expected):
    self.log = None
    self.expected = expected
    self.event = 0
    self._closed = False