def _verify_login(self, ret):
        # It is necessary to wait for the 'login incorrect' message to appear.
        time.sleep(1)
        while True:
            try:
                ret += self.read_until('\n', 'TRACE').decode('ASCII', 'ignore')
            except AssertionError:
                return ret
            else:
                if 'Login incorrect' in ret:
                    self._log(ret)
                    raise AssertionError("Login incorrect")
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/Telnet.py/TelnetConnection._verify_login/original