code: def failed(self, reason=None):
          '''
          Set the test status to Report.FAILED, and set the failure reason
  
          :param reason: failure reason (default: None)
          '''
          self.set_status(Report.FAILED)
          if reason:
              self.add('reason', reasonf failed(self, reason=None):
          '''
          Set the test status to Report.FAILED, and set the failure reason
  
          :param reason: failure reason (default: None)
          '''
          self.set_status(Report.FAILED)
          if reason:
              self.add('reason', reason)
docs: Set the test status to Report.FAILED, and set the failure reason
  
          :param reason: failure reason (default: None)