#NEWLINE# def test_disconnect( self ) : #NEWLINE# #INDENT# def func( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mocksignal = MockSignal ( ) #NEWLINE# hook . _registry [ 'foo-hook' ] = mocksignal #NEWLINE# hook . disconnect ( 'foo-hook' , func , dispatch_uid = 'foo' ) #NEWLINE# self . assertEqual ( [ mocksignal . func , mocksignal . dispatch_uid ] , [ mocksignal , 'foo' ] )