Lines Matching refs:tl
289 if cmd == tl.SE and self.sb_getter:
293 tl = telnetlib
296 '''The only thing that write does is replace each tl.IAC for
297 tl.IAC+tl.IAC'''
301 b'data sample with' + tl.IAC + b' one IAC',
302 b'a few' + tl.IAC + tl.IAC + b' iacs' + tl.IAC,
303 tl.IAC,
309 self.assertEqual(data.replace(tl.IAC,tl.IAC+tl.IAC), written)
313 cmds = [tl.AO, tl.AYT, tl.BRK, tl.EC, tl.EL, tl.GA, tl.IP, tl.NOP]
325 self.assertEqual(cmd[1:2], tl.NOOPT)
331 self._test_command([tl.IAC, cmd])
332 self._test_command([b'x' * 100, tl.IAC, cmd, b'y'*100])
333 self._test_command([b'x' * 10, tl.IAC, cmd, b'y'*10])
335 self._test_command([tl.IAC + cmd for (cmd) in self.cmds])
339 send = [tl.IAC + tl.SB + tl.IAC + tl.SE,
340 tl.IAC + tl.SB + tl.IAC + tl.IAC + tl.IAC + tl.SE,
341 tl.IAC + tl.SB + tl.IAC + tl.IAC + b'aa' + tl.IAC + tl.SE,
342 tl.IAC + tl.SB + b'bb' + tl.IAC + tl.IAC + tl.IAC + tl.SE,
343 tl.IAC + tl.SB + b'cc' + tl.IAC + tl.IAC + b'dd' + tl.IAC + tl.SE,
350 want_sb_data = tl.IAC + tl.IAC + b'aabb' + tl.IAC + b'cc' + tl.IAC + b'dd'
361 (tl.IAC + bytes([88]), ": IAC 88 not recognized\n"),
362 (tl.IAC + tl.DO + bytes([1]), ": IAC DO 1\n"),
363 (tl.IAC + tl.DONT + bytes([1]), ": IAC DONT 1\n"),
364 (tl.IAC + tl.WILL + bytes([1]), ": IAC WILL 1\n"),
365 (tl.IAC + tl.WONT + bytes([1]), ": IAC WONT 1\n"),