code: def test_add_two_conflicting_resources_on_same_endpoint(self, app):
      api = restplus.Api(app)
  
      class Foo1(restplus.Resource):
          def get(self):
              return "foo1"
  
      class Foo2(restplus.Resource):
          def get(self):
              return "foo2"
  
      api.add_resource(Foo1, "/foo", endpoint="bar")
      with pytest.raises(ValueError):
          api.add_resource(Foo2, "/foo/toto", endpoint="bar")
  
imports: from __future__ import unicode_literals
  import flask
  import pytest
  import six
  from json import dumps, JSONEncoder
  from flask import Blueprint, redirect, views
  from werkzeug.exceptions import HTTPException, Unauthorized, BadRequest
  import flask_restplus
label_desc: Use image node_id 18 for calling the APITest obj's underlying member method code with example usage: obj.test_add_two_conflicting_resources_on_same_endpoint(app) and returns: str, str