#NEWLINE# def testNewKey__register( self ) : #NEWLINE# #INDENT# ' ExtRegistry.register: adds a new key.\n            ' #NEWLINE# v = ( lambda : 'bar' ) #NEWLINE# t = { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } #NEWLINE# self . registry . register ( 'foo' , self , t ) #NEWLINE# self . assertEqual ( self . registry . _actions [ 'foo' ] , v ) #NEWLINE# self . assertEqual ( self . registry . _type_info [ 'foo' ] , t )