#NEWLINE# def test_loadTestsFromName__relative_TestCase_subclass( self ) : #NEWLINE# #INDENT# m = types . ModuleType ( 'm' ) #NEWLINE# class MyTestCase ( unittest . TestCase ) : #NEWLINE# #INDENT# def test( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# m . testcase_1 = MyTestCase #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# suite = loader . loadTestsFromName ( 'testcase_1' , m ) #NEWLINE# self . assertIsInstance ( suite , loader . suiteClass ) #NEWLINE# self . assertEqual ( list ( loader ) , [ MyTestCase ( 'test' ) ] )