#NEWLINE# def test_close_connection( self ) : #NEWLINE# #INDENT# c1 = self . transport . create_channel ( c1 . transport ) #NEWLINE# c2 = self . transport . create_channel ( self . transport ) #NEWLINE# self . assertEqual ( len ( self . transport . channels ) , 2 ) #NEWLINE# self . transport . close_connection ( self . transport ) #NEWLINE# self . assertFalse ( self . transport . channels ) #NEWLINE# del c1 #NEWLINE# del c2