def test_list_display_header():
    app, admin = setup()

    view = MockModelView(Model, list_display=['test_header'])
    admin.add_view(view)

    eq_(len(view.list_display), 1)

    client = app.test_client()

    rv = client.get('/admin/model/')
    ok_('Test Header' in rv.data)
dataset/ETHPy150Open syrusakbary/Flask-SuperAdmin/flask_superadmin/tests/test_model.py/test_list_display_header/original