#NEWLINE# def test_suiteClass__loadTestsFromNames( self ) : #NEWLINE# #INDENT# m = types . ModuleType ( 'm' ) #NEWLINE# class Foo ( unittest . TestCase ) : #NEWLINE# #INDENT# def test_1( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def test_2( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def foo_bar( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# m . Foo = Foo #NEWLINE# tests = [ [ Foo ( 'test_1' ) , Foo ( 'test_2' ) ] ] #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# loader . suiteClass = list #NEWLINE# self . assertEqual ( loader . loadTestsFromNames ( [ 'Foo' ] , m ) , m )