#NEWLINE# def test_proxy( self ) : #NEWLINE# #INDENT# from pyamf import flex #NEWLINE# c = pyamf . get_encoder ( pyamf . AMF3 ) #NEWLINE# self . alias . proxy_attrs = ( 'foo' , 'bar' ) #NEWLINE# self . alias . compile ( ) #NEWLINE# self . assertEqual ( self . alias . proxy_attrs , [ 'bar' , 'foo' ] ) #NEWLINE# attrs = { #NEWLINE# #INDENT# 'foo' : flex . ArrayCollection ( [ 'bar' , 'baz' ] ) , #NEWLINE# 'bar' : flex . ObjectProxy ( { #NEWLINE# #INDENT# 'foo' : 'gak' , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } #NEWLINE# ret = self . alias . getDecodableAttributes ( self . obj , attrs , c ) #NEWLINE# self . assertEqual ( ret , { #NEWLINE# #INDENT# 'foo' : [ 'bar' , 'baz' ] , #NEWLINE# 'bar' : { #NEWLINE# #INDENT# 'foo' : 'gak' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )