

def test_delayed_init():
    app = Flask(__name__)
    admin = base.Admin()
    admin.add_view(MockView())
    admin.init_app(app)
    client = app.test_client()
    rv = client.get('/admin/mockview/')
    eq_(rv.data, b'Success!')

dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/tests/test_base.py test_delayed_init/original