

def test_root_mount():
    app = Flask(__name__)
    admin = base.Admin(app, url='/')
    admin.add_view(MockView())
    client = app.test_client()
    rv = client.get('/mockview/')
    eq_(rv.data, b'Success!')
    with app.test_request_context('/'):
        rv = client.get(url_for('admin.static', filename='bootstrap/bootstrap2/css/bootstrap.css'))
    eq_(rv.status_code, 200)

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