code: def test_json_float_marshalled(self, app, client):
      api = Api(app)
  
      class FooResource(Resource):
          fields = {"foo": fields.Float}
  
          def get(self):
              return marshal({"foo": 3.0}, self.fields)
  
      api.add_resource(FooResource, "/api")
  
      resp = client.get("/api")
      assert resp.status_code == 200
      assert resp.data.decode("utf-8") == '{"foo": 3.0}\n'
  
imports: from __future__ import unicode_literals
  import pytest
  from flask_restplus import marshal, marshal_with, marshal_with_field, fields, Api, Resource
label_desc: Use image node_id 34 for calling the MarshallingTest obj's underlying member method code with example usage: obj.test_json_float_marshalled(app, client) and returns: marshal