#NEWLINE# def load_constraint( name ) : #NEWLINE# #INDENT# global cluster_info #NEWLINE# try : #NEWLINE# #INDENT# c = cluster_info [ 'swift' ] [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise SkipTest ( ( 'Missing constraint: %s' % name ) ) #NEWLINE# #UNINDENT# if ( not isinstance ( c , int ) ) : #NEWLINE# #INDENT# raise SkipTest ( ( 'Bad value, %r, for constraint: %s' % ( c , cluster_info ) ) ) #NEWLINE# #UNINDENT# return c