def attach_video(func):
 @functools.wraps(func)
 def wrapper(self, *args, **kwgs):
  self._need_attach_video = True
  return func(self, *args, **kwgs)
 return wrapper

def attach_video ( func ) : @ functools . wraps ( func ) def wrapper ( self , * args , ** kwgs ) : self . _need_attach_video = True return func ( self , * args , ** kwgs ) return wrapper
notify test runner to attach test video in any case .