#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# '\n        Test that SSHChannel initializes correctly.  localWindowSize defaults\n        to 131072 (2**17) and localMaxPacket to 32768 (2**15) as reasonable\n        defaults (what OpenSSH uses for those variables).\n\n        The values in the second set of assertions are meaningless; they serve\n        only to verify that the instance variables are assigned in the correct\n        order.\n        ' #NEWLINE# c = channel . SSHChannel ( conn = self . conn ) #NEWLINE# self . assertEqual ( c . localWindowSize , 131072 ) #NEWLINE# self . assertEqual ( c . localWindowLeft , 131072 ) #NEWLINE# self . assertEqual ( c . localMaxPacket , 32768 ) #NEWLINE# self . assertEqual ( c . remoteWindowLeft , 0 ) #NEWLINE# self . assertEqual ( c . remoteMaxPacket , 0 ) #NEWLINE# self . assertEqual ( c . conn , self . conn ) #NEWLINE# self . assertEqual ( c . data , None ) #NEWLINE# self . assertEqual ( c . avatar , None ) #NEWLINE# c2 = channel . SSHChannel ( 1 , 2 , 3 , 4 , 5 , 6 , 7 ) #NEWLINE# self . assertEqual ( c2 . localWindowSize , 1 ) #NEWLINE# self . assertEqual ( c2 . localWindowLeft , 1 ) #NEWLINE# self . assertEqual ( c2 . localMaxPacket , 2 ) #NEWLINE# self . assertEqual ( c2 . remoteWindowLeft , 3 ) #NEWLINE# self . assertEqual ( c2 . remoteMaxPacket , 4 ) #NEWLINE# self . assertEqual ( c2 . conn , 5 ) #NEWLINE# self . assertEqual ( c2 . data , 6 ) #NEWLINE# self . assertEqual ( c2 . avatar , 7 )