

def get_visibility():
    app = Flask(__name__)
    admin = base.Admin(app)
    view = MockView(name='TestMenuItem')
    view.visible = False
    admin.add_view(view)
    client = app.test_client()
    rv = client.get('/admin/mockview/')
    ok_(('TestMenuItem' not in rv.data.decode('utf-8')))

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