def whitelist_check(path):
 left = path.dirname
 last_left = None
 module_path = path.purebasename
 while (len(left) and (left != last_left)):
  last_left = left
  (left, tail) = os.path.split(left)
  module_path = u'.'.join([tail, module_path])
  if (module_path in default_test_modules):
   return False
 return True

def whitelist_check ( path ) : left = path . dirname last_left = None module_path = path . purebasename while ( len ( left ) and ( left != last_left ) ) : last_left = left ( left , tail ) = os . path . split ( left ) module_path = u'.' . join ( [ tail , module_path ] ) if ( module_path in default_test_modules ) : return False return True
check if test is not whitelisted and should be ignored .