def wtforms2_and_up(func):
    """Decorator for skipping test if wtforms <2
    """
    if int(wtforms.__version__[0]) < 2:
        func.__test__ = False
    return func
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/tests/test_model.py/wtforms2_and_up/original