def YouCompleteMeInstance(custom_options={}):
 def Decorator(test):
  @functools.wraps(test)
  def Wrapper(*args, **kwargs):
   ycm = YouCompleteMe(_MakeUserOptions(custom_options))
   _WaitUntilReady()
   try:
    test(ycm, *args, **kwargs)
   finally:
    StopServer(ycm)
  return Wrapper
 return Decorator

def YouCompleteMeInstance ( custom_options = { } ) : def Decorator ( test ) : @ functools . wraps ( test ) def Wrapper ( * args , ** kwargs ) : ycm = YouCompleteMe ( _MakeUserOptions ( custom_options ) ) _WaitUntilReady ( ) try : test ( ycm , * args , ** kwargs ) finally : StopServer ( ycm ) return Wrapper return Decorator
defines a decorator function for tests that passes a unique youcompleteme instance as a parameter .