def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def _resetExpect(self):
        self.previousExpectLine = ""
        if self._connection is not None and isinstance(self._connection.buffer, str):
            self.previousExpectLine = self._connection.buffer 
            self._connection.buffer = ""