def _validate_args(args, dargs, *funcs):
 all_co_flags = 0
 all_varnames = ()
 for func in funcs:
  all_co_flags |= func.func_code.co_flags
  all_varnames += func.func_code.co_varnames[:func.func_code.co_argcount]
 if (len(args) > 0):
  raise error.TestError('Unnamed arguments not accepted. Please call job.run_test with named args only')
 if (len(dargs) > 0):
  if (not (all_co_flags & 8)):
   for param in dargs:
    if (param not in all_varnames):
     raise error.AutotestError(('Unknown parameter: %s' % param))

def _validate_args ( args , dargs , * funcs ) : all_co_flags = 0 all_varnames = ( ) for func in funcs : all_co_flags |= func . func_code . co_flags all_varnames += func . func_code . co_varnames [ : func . func_code . co_argcount ] if ( len ( args ) > 0 ) : raise error . TestError ( 'Unnamed arguments not accepted. Please call job.run_test with named args only' ) if ( len ( dargs ) > 0 ) : if ( not ( all_co_flags & 8 ) ) : for param in dargs : if ( param not in all_varnames ) : raise error . AutotestError ( ( 'Unknown parameter: %s' % param ) )
validates arguments .