#NEWLINE# def test_loadTestsFromNames__relative_bad_object( self ) : #NEWLINE# #INDENT# m = types . ModuleType ( 'm' ) #NEWLINE# m . testcase_1 = object ( ) #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# try : #NEWLINE# #INDENT# loader . loadTestsFromNames ( [ 'testcase_1' ] , self ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Should have raised TypeError' )