#NEWLINE# def test_add_get_dispatcher( self ) : #NEWLINE# #INDENT# disp = Dispatcher ( ) #NEWLINE# self . app . add_dispatcher ( 'SERVICE' , disp ) #NEWLINE# self . assertEqual ( disp_return . app . _dispatchers , { #NEWLINE# #INDENT# 'SERVICE' : disp , #NEWLINE# #UNINDENT# } ) #NEWLINE# disp_return = self . app . get_dispatcher ( 'SERVICE' ) #NEWLINE# self . assertEqual ( disp_return , disp )