#NEWLINE# def test_loadTestsFromModule__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 . loadTestsFromModule ( expected ) #NEWLINE# self . assertIsInstance ( suite , loader . suiteClass ) #NEWLINE# expected = [ loader . suiteClass ( [ MyTestCase ( 'test' ) ] ) ] #NEWLINE# self . assertEqual ( list ( suite ) , expected )