#NEWLINE# def test_registry_get( self ) : #NEWLINE# #INDENT# reg = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# umapper = inspect ( self . classes . User ) #NEWLINE# amapper = inspect ( self . classes . Address ) #NEWLINE# p1 = PathRegistry . coerce ( ( umapper , umapper . attrs . addresses ) ) #NEWLINE# p2 = PathRegistry . coerce ( ( umapper , umapper . attrs . addresses , amapper ) ) #NEWLINE# p3 = PathRegistry . coerce ( ( amapper , amapper . attrs . email_address ) ) #NEWLINE# reg . update ( { #NEWLINE# #INDENT# ( 'p1key' , p1 . path ) : 'p1value' , #NEWLINE# ( 'p2key' , p2 . path ) : 'p2value' , #NEWLINE# ( 'p3key' , p3 . path ) : 'p3value' , #NEWLINE# #UNINDENT# } ) #NEWLINE# eq_ ( p1 . get ( reg , 'p1key' ) , 'p1value' ) #NEWLINE# eq_ ( p2 . get ( reg , 'p2key' ) , 'p2value' ) #NEWLINE# eq_ ( p2 . get ( reg , 'p1key' ) , None ) #NEWLINE# eq_ ( p3 . get ( reg , 'p3key' ) , 'p3value' ) #NEWLINE# eq_ ( p3 . get ( reg , 'p1key' ) , None )