def with_support(*args, **kwargs):
 settings = default_settings.copy()
 settings.update(kwargs)
 def generator(func):
  @wraps(func)
  def new_func(*args2, **kwargs2):
   support = WebSupport(**settings)
   func(support, *args2, **kwargs2)
  return new_func
 return generator

def with_support ( * args , ** kwargs ) : settings = default_settings . copy ( ) settings . update ( kwargs ) def generator ( func ) : @ wraps ( func ) def new_func ( * args2 , ** kwargs2 ) : support = WebSupport ( ** settings ) func ( support , * args2 , ** kwargs2 ) return new_func return generator
make a websupport object and pass it the test .