#NEWLINE# def get_TestSuite_from_module( mod , config ) : #NEWLINE# #INDENT# 'Get an existing suite from a module.' #NEWLINE# for methname in ( 'get_suite' , 'GetSuite' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# meth = getattr ( mod , methname ) #NEWLINE# return meth ( config ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# raise module . ObjectImportError ( ( 'Module %r does not have a get_suite() function.' % ( module , ) ) )