#NEWLINE# def test_nested_field_order_with_exlude_arg_is_maintained( self , user ) : #NEWLINE# #INDENT# class HasNestedExclude ( Schema ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# ordered = True #NEWLINE# #UNINDENT# user = fields . Nested ( KeepOrder , exclude = ( 'birthdate' , ) ) #NEWLINE# #UNINDENT# ser = HasNestedExclude ( ) #NEWLINE# ( data , errs ) = ser . dump ( { #NEWLINE# #INDENT# 'user' : user , #NEWLINE# #UNINDENT# } ) #NEWLINE# user_data = data [ 'user' ] #NEWLINE# keys = list ( user_data ) #NEWLINE# assert ( user_data == [ 'name' , 'email' , 'age' , 'created' , 'id' , 'homepage' ] )