def check_endpoint():
    class CustomView(MockView):
        def _get_endpoint(self, endpoint):
            return 'admin.' + super(CustomView, self)._get_endpoint(endpoint)

    view = CustomView()
    eq_(view.endpoint, 'admin.customview')
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/tests/test_base.py/check_endpoint/original