#NEWLINE# def test_adjust__max_height( self ) : #NEWLINE# #INDENT# im = Image . open ( self . _data_path ( '100x100.png' ) ) #NEWLINE# fill = Fill ( width = 50 , max_height = 200 ) #NEWLINE# adjusted = fill . adjust ( im ) #NEWLINE# self . assertEqual ( adjusted . size , ( 50 , 50 ) ) #NEWLINE# expected = Image . open ( self . _data_path ( '50x50_fit.png' ) ) #NEWLINE# self . assertImageEqual ( adjusted , expected )