def run(self): Test.run(self) connection2 = Telnet() connection2.connect() connection2.expect("Welcome\n") message1 = "MESSAGE1" message2 = "MESSAGE2" connection2.send(message1) result1 = self.connection.expect(message1 + "\r") self.connection.send(message2) result2 = connection2.expect(message2 + "\r") connection2.close() return result1 and result2
def run(self): return Test.run(self)
def run(self): Test.run(self) message = "MESSAGE" self.connection.send(message) self.connection.close() sleep(0.05)