#NEWLINE# def test_loadTestsFromNames__callable__call_staticmethod( self ) : #NEWLINE# #INDENT# m = types . ModuleType ( 'm' ) #NEWLINE# class Test1 ( unittest . TestCase ) : #NEWLINE# #INDENT# def test( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# testcase_1 = Test1 ( 'test' ) #NEWLINE# class Foo ( unittest . TestCase ) : #NEWLINE# #INDENT# @ staticmethod #NEWLINE# def foo( ) : #NEWLINE# #INDENT# return testcase_1 #NEWLINE# #UNINDENT# #UNINDENT# m . Foo = Foo #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# suite = loader . loadTestsFromNames ( [ 'Foo.foo' ] , m ) #NEWLINE# self . assertIsInstance ( suite , loader . suiteClass ) #NEWLINE# ref_suite = unittest . TestSuite ( [ testcase_1 ] ) #NEWLINE# self . assertEqual ( list ( suite ) , [ ref_suite ] )