#NEWLINE# @ test . raises ( TypeError ) #NEWLINE# def test_render_bad_out( self ) : #NEWLINE# #INDENT# self . app . setup ( ) #NEWLINE# self . app . run ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . app . render ( dict ( foo = 'bar' ) , out = 'bogus type' ) #NEWLINE# #UNINDENT# except TypeError as e : #NEWLINE# #INDENT# self . eq ( self . args [ 0 ] , "Argument 'out' must be a 'file' like object" ) #NEWLINE# raise