def _buildTestClasses(_locals):
 for x in getModule('twisted').walkModules():
  ignoredModules = ['twisted.test.reflect_helper', 'twisted.internet.test.process_', 'twisted.test.process_']
  isIgnored = [x.name.startswith(ignored) for ignored in ignoredModules]
  if (True in isIgnored):
   continue
  class Test(NewStyleOnly, unittest.TestCase, ):
   '\n            @see: L{NewStyleOnly}\n            '
   module = x.name
  acceptableName = x.name.replace('.', '_')
  Test.__name__ = acceptableName
  if hasattr(Test, '__qualname__'):
   Test.__qualname__ = acceptableName
  _locals.update({acceptableName: Test})

def _buildTestClasses ( _locals ) : for x in getModule ( 'twisted' ) . walkModules ( ) : ignoredModules = [ 'twisted.test.reflect_helper' , 'twisted.internet.test.process_' , 'twisted.test.process_' ] isIgnored = [ x . name . startswith ( ignored ) for ignored in ignoredModules ] if ( True in isIgnored ) : continue class Test ( NewStyleOnly , unittest . TestCase , ) : module = x . name acceptableName = x . name . replace ( '.' , '_' ) Test . __name__ = acceptableName if hasattr ( Test , '__qualname__' ) : Test . __qualname__ = acceptableName _locals . update ( { acceptableName : Test } )
build the test classes that use l{newstyleonly} .