#NEWLINE# def test_reify_object_attrs( ) : #NEWLINE# #INDENT# ( x , y ) = ( var ( 'x' ) , var ( 'y' ) ) #NEWLINE# ( f , g ) = ( Foo ( 1 , 2 ) , Foo ( x , y ) ) #NEWLINE# s = { #NEWLINE# #INDENT# x : 1 , #NEWLINE# y : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( reify_object_attrs ( g , s , [ 'a' , 'b' ] ) == f ) #NEWLINE# assert ( reify_object_attrs ( g , s , [ 'a' ] ) == Foo ( 1 , y ) ) #NEWLINE# assert ( reify_object_attrs ( g , s , [ 'b' ] ) == Foo ( x , 2 ) ) #NEWLINE# assert ( reify_object_attrs ( g , s , [ ] ) is g )