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

    view = MockModelView(Model, search_fields=['col1', 'col2'])
    admin.add_view(view)

    eq_(view.search_fields, ['col1', 'col2'])

    client = app.test_client()

    rv = client.get('/admin/model/')
    ok_(rv.data in '<div class="search">')
dataset/ETHPy150Open syrusakbary/Flask-SuperAdmin/flask_superadmin/tests/test_model.py/test_search_fields/swapped operands of `in`