#NEWLINE# def test_getTestCaseNames__not_a_TestCase( self ) : #NEWLINE# #INDENT# class BadCase ( int ) : #NEWLINE# #INDENT# def test_foo( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# loader = unittest . TestLoader ( ) #NEWLINE# names = loader . getTestCaseNames ( BadCase ) #NEWLINE# self . assertEqual ( names , [ 'test_foo' ] )