def wasSuccessful(self): """Was test run successful? Fires :func:`wasSuccessful` hook, and returns ``event.success``. """ # assume failure; plugins must explicitly declare success try: return self._success except AttributeError: event = events.ResultSuccessEvent(self, None) self.session.hooks.wasSuccessful(event) self._success = event.success return self._success
def wasSuccessful(self): """Was test run successful? Fires :func:`wasSuccessful` hook, returns ``event.success``. """ # assume failure, plugins must affirmatively declare success try: return self._success except AttributeError: event = events.ResultSuccessEvent(self, False) self.session.hooks.wasSuccessful(event) self._success = event.success return self._success