#NEWLINE# def test_marshal_tuple_with_envelope( self ) : #NEWLINE# #INDENT# model = OrderedDict ( { #NEWLINE# #INDENT# 'foo' : fields . Raw , #NEWLINE# #UNINDENT# } ) #NEWLINE# marshal_fields = OrderedDict ( [ ( 'foo' , 'bar' ) , ( 'bat' , 'baz' ) ] ) #NEWLINE# output = marshal ( ( marshal_fields , ) , self , envelope = 'hey' ) #NEWLINE# self . assertEquals ( output , { #NEWLINE# #INDENT# 'hey' : [ { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } )