def skip_if_no_multiple_domains_support(f):
 @functools.wraps(f)
 def wrapper(*args, **kwargs):
  test_obj = args[0]
  if (not test_obj.identity_api.multiple_domains_supported):
   raise testcase.TestSkipped('No multiple domains support')
  return f(*args, **kwargs)
 return wrapper

def skip_if_no_multiple_domains_support ( f ) : @ functools . wraps ( f ) def wrapper ( * args , ** kwargs ) : test_obj = args [ 0 ] if ( not test_obj . identity_api . multiple_domains_supported ) : raise testcase . TestSkipped ( 'No multiple domains support' ) return f ( * args , ** kwargs ) return wrapper
decorator to skip tests for identity drivers limited to one domain .