#NEWLINE# def test_get_handler( self ) : #NEWLINE# #INDENT# ( msg , handler , subscriber ) = self . get_subscription ( ) #NEWLINE# self . hub . subscribe ( subscriber , msg , handler ) #NEWLINE# assert ( self . hub . get_handler ( subscriber , msg ) == handler ) #NEWLINE# assert ( self . hub . get_handler ( subscriber , None ) is None ) #NEWLINE# assert ( self . hub . get_handler ( None , self ) is None )