

def test_custom_index_view():
    view = base.AdminIndexView(name='a', category='b', endpoint='c', url='/d', template='e')
    admin = base.Admin(index_view=view)
    eq_(admin.endpoint, 'c')
    eq_(admin.url, '/d')
    ok_((admin.index_view is view))
    eq_(view.name, 'a')
    eq_(view.category, 'b')
    eq_(view._template, 'e')
    eq_(len(admin._views), 1)
    eq_(view._views[0], view)

dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/tests/test_base.py test_custom_index_view/VarMisuse@117/147 `admin`->`view`