def METHOD_NAME(self):
    """Reset the internal attributes."""
    self.expectedStringFound = False
    self.isTimeout = False
    self.mainProcess = None
    self.mainThread = None
    self.returncode = 0
    self.output = ''