def wtforms2_and_up(func):
 if (int(wtforms.__version__[0]) < 2):
  func.__test__ = False
 return func

def wtforms2_and_up ( func ) : if ( int ( wtforms . __version__ [ 0 ] ) < 2 ) : func . __test__ = False return func
decorator for skipping test if wtforms <2 .