#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'widthratio11' : '{% widthratio a b c %}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_widthratio11( self ) : #NEWLINE# #INDENT# '\n        #10043: widthratio should allow max_width to be a variable\n        ' #NEWLINE# output = self . engine . render_to_string ( 'widthratio11' , { #NEWLINE# #INDENT# 'a' : 50 , #NEWLINE# 'c' : 100 , #NEWLINE# 'b' : 100 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( self , '50' )