#NEWLINE# def test_on_channel_close( self ) : #NEWLINE# #INDENT# ch = BaseChannel ( ) #NEWLINE# ch . on_channel_open ( Mock ( ) ) #NEWLINE# ch . _transport . channel_number = 1 #NEWLINE# ch . on_channel_close ( ch , 0 , 'hi' ) #NEWLINE# self . assertIsNone ( self . _transport )