def unmatched_events(self): if not self._success: return EventContext([ self.expected_event_type(self.expected_message, self.matched_state) ]) else: return EventContext()
def matched_events(self): if self._success: if not self.matched_args: return EventContext() return EventContext([ self.expected_event_type(self.expected_message, self.matched_args) ]) else: return EventContext()
def matched_events(self): if self._success: if not self.matched_state: return EventContext() return EventContext([ self.expected_event_type( self.expected_message, self.matched_state, ExpectPolicy.check, ) ]) else: return EventContext()
def unmatched_events(self): if self.expectation is None: return EventContext() return self.expectation.unmatched_events()
def matched_events(self): if self._no_expect or self.expectation is None: return EventContext() return self.expectation.matched_events()
def received_events(self): if self.expectation is None: return EventContext() return self.expectation.received_events()
def received_events(self): return EventContext()
def expected_events(self): return EventContext([ self.expected_event_type(self.expected_message, self.expected_args) ])
def unmatched_events(self): if not self._success: return EventContext(self.expected_events().events()) else: return EventContext()
def received_events(self): if not self._received_events: return EventContext() return EventContext(self._received_events[:])
def received_events(self): if not self: return EventContext() else: return EventContext([self._received_event])
def expected_events(self): if self: return EventContext() else: return EventContext([DisconnectedEvent()])