def post_install(flag):
 def decorator(obj):
  obj.post_install = flag
  return obj
 return decorator

def post_install ( flag ) : def decorator ( obj ) : obj . post_install = flag return obj return decorator
sets the post-install state of a test .