def skipIfNotFramework(framework):
 key = 'DIGITS_TEST_FRAMEWORK'
 if ((key in os.environ) and (os.environ[key] != framework)):
  raise unittest.SkipTest(('Skipping because %s is "%s" and not "%s"' % (key, os.environ[key], framework)))

def skipIfNotFramework ( framework ) : key = 'DIGITS_TEST_FRAMEWORK' if ( ( key in os . environ ) and ( os . environ [ key ] != framework ) ) : raise unittest . SkipTest ( ( 'Skipping because %s is "%s" and not "%s"' % ( key , os . environ [ key ] , framework ) ) )
raises skiptest if digits_test_framework is set to something other than framework .