#NEWLINE# def test_render_exceptions( ) : #NEWLINE# #INDENT# for arg in ( 'fill' , 'char' ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# gj2ascii . render ( [ ] , ** { #NEWLINE# #INDENT# arg : 'too long' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# for w in ( 0 , ( - 1 ) , ( - 1000 ) ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# gj2ascii . render ( [ ] , width = w )