#NEWLINE# def test_type_error( self ) : #NEWLINE# #INDENT# '\n        Verify that type errors thrown from a handler method result in a valid \n        HttpResonse object being returned from the error_handler method\n        ' #NEWLINE# class MyHandler ( BaseHandler ) : #NEWLINE# #INDENT# def read( self , request ) : #NEWLINE# #INDENT# raise TypeError ( ) #NEWLINE# #UNINDENT# #UNINDENT# request = HttpRequest ( ) #NEWLINE# request . method = 'GET' #NEWLINE# response = Resource ( MyHandler ) ( request ) #NEWLINE# self . assertTrue ( isinstance ( response , HttpResponse ) , ( 'Expected a response, not: %s' % response ) )