code: def test_accept_no_default_no_representations(self, app, client):
      api = restplus.Api(app, default_mediatype=None)
      api.representations = {}
  
      api.add_resource(Foo, "/test/")
  
      res = client.get("/test/", headers=[("Accept", "text/plain")])
      assert res.status_code == 406
      assert res.content_type == "text/plain"
  
file_path: flask-restplus/tests/test_accept.py
imports: from __future__ import unicode_literals
  import flask_restplus
label_desc: Use image node_id 12 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_accept_no_default_no_representations(app, client) without return types