#NEWLINE# def requires_acls( f ) : #NEWLINE# #INDENT# @ functools . wraps ( f ) #NEWLINE# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# global skip , cluster_info #NEWLINE# if ( skip or ( not cluster_info ) ) : #NEWLINE# #INDENT# raise SkipTest ( 'Requires account ACLs' ) #NEWLINE# #UNINDENT# if ( not cluster_info . get ( 'tempauth' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'account_acls' ) ) : #NEWLINE# #INDENT# raise SkipTest ( 'Requires account ACLs' ) #NEWLINE# #UNINDENT# if ( swift_test_auth_version != '1' ) : #NEWLINE# #INDENT# raise SkipTest ( 'Requires account ACLs' ) #NEWLINE# #UNINDENT# reset_acl ( ) #NEWLINE# try : #NEWLINE# #INDENT# rv = f ( * args , ** kwargs ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# reset_acl ( ) #NEWLINE# #UNINDENT# return rv #NEWLINE# #UNINDENT# return wrapper