#NEWLINE# def test_attach_channel( self ) : #NEWLINE# #INDENT# ch = Mock ( spec = BaseChannel ) #NEWLINE# self . _endpoint_unit . attach_channel ( ch ) #NEWLINE# self . assertTrue ( ( self . _endpoint_unit . channel is not None ) ) #NEWLINE# self . assertEquals ( self . _endpoint_unit . channel , ch )