Lines Matching refs:expected_events
229 def add_event(self, expected_events, timeout, on_timeout=None):
232 @param expected_events: The ExpectedEvent, or a list thereof, to wait
239 if isinstance(expected_events, ExpectedUpdateEvent):
240 expected_events = [expected_events]
242 (expected_events, timeout, on_timeout))
246 def _format_event_with_timeout(expected_events, timeout):
249 return '%s, %s' % (' OR '.join(map(str, expected_events)), until)
255 [self._format_event_with_timeout(expected_events, timeout)
256 for expected_events, timeout, _
272 for expected_events, timeout, on_timeout in self._expected_events_chain:
274 self._format_event_with_timeout(expected_events,
277 expected_events, timeout, on_timeout, get_next_event)
284 def _verify_event_with_timeout(expected_events, timeout, on_timeout,
288 @param expected_events: the list of possible events expected next
303 results = [event.verify(new_event) for event in expected_events]
314 (' OR '.join(map(str, expected_events)), timeout))
1708 expected_events = [
1725 expected_events,