def skip_if_configuration_set(configuration, value, message=None):
 if (getattr(config, configuration) == value):
  if (message is not None):
   raise SkipTest(message)
  else:
   raise SkipTest

def skip_if_configuration_set ( configuration , value , message = None ) : if ( getattr ( config , configuration ) == value ) : if ( message is not None ) : raise SkipTest ( message ) else : raise SkipTest
raise skiptest if a configuration option has a certain value .