#NEWLINE# def testExistKeyUpdate__register( self ) : #NEWLINE# #INDENT# ' Registry.register: updates value for existing key.\n            ' #NEWLINE# v = ( lambda : 'bar' ) #NEWLINE# self . registry . register ( 'foo' , self ) #NEWLINE# self . assertEqual ( self . registry . _actions [ 'foo' ] , v ) #NEWLINE# v2 = ( lambda : 'llama' ) #NEWLINE# self . registry . register ( 'foo' , v2 ) #NEWLINE# self . assertEqual ( self . registry . _actions [ 'foo' ] , v2 )