#NEWLINE# def test_IAC_commands( self ) : #NEWLINE# #INDENT# self . dataq . put ( [ EOF_sigil ] ) #NEWLINE# telnet = telnetlib . Telnet ( HOST , self . port ) #NEWLINE# self . dataq . join ( ) #NEWLINE# self . tearDown ( ) #NEWLINE# for cmd in self . cmds : #NEWLINE# #INDENT# self . _test_command ( [ ( 'x' * 100 ) , ( tl . IAC + cmd ) , ( 'y' * 100 ) , EOF_sigil ] ) #NEWLINE# self . _test_command ( [ ( 'x' * 10 ) , ( tl . IAC + cmd ) , ( 'y' * 10 ) , EOF_sigil ] ) #NEWLINE# self . _test_command ( [ ( tl . IAC + cmd ) , EOF_sigil ] ) #NEWLINE# #UNINDENT# self . _test_command ( ( [ ( tl . IAC + cmd ) for cmd in self . cmds ] + [ EOF_sigil ] ) ) #NEWLINE# self . assertEqual ( '' , telnet . read_sb_data ( ) )