#NEWLINE# def test_loadTestsFromNames__callable__TestSuite( self ) : #NEWLINE# #INDENT# m = types . ModuleType ( 'm' ) #NEWLINE# testcase_1 = unittest . FunctionTestCase ( ( lambda : None ) ) #NEWLINE# testcase_2 = unittest . FunctionTestCase ( ( lambda : None ) ) #NEWLINE# def return_TestSuite( ) : #NEWLINE# #INDENT# return unittest . TestSuite ( [ testcase_1 , testcase_2 ] ) #NEWLINE# #UNINDENT# m . return_TestSuite = return_TestSuite #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# suite = loader . loadTestsFromNames ( [ 'return_TestSuite' ] , m ) #NEWLINE# self . assertIsInstance ( suite , loader . suiteClass ) #NEWLINE# expected = unittest . TestSuite ( [ testcase_1 , testcase_2 ] ) #NEWLINE# self . assertEqual ( list ( suite ) , [ expected ] )