#NEWLINE# def test_addHandler( self ) : #NEWLINE# #INDENT# '\n        Test the addition of a protocol handler.\n        ' #NEWLINE# handler = XMPPHandler ( ) #NEWLINE# handler . setHandlerParent ( self . factory . streamManager ) #NEWLINE# self . assertIn ( handler , self . factory . streamManager ) #NEWLINE# self . assertIdentical ( handler . factory . streamManager , handler . parent )