#NEWLINE# def test_adjust__both( self ) : #NEWLINE# #INDENT# im = Image . open ( self . _data_path ( '100x100.png' ) ) #NEWLINE# crop = Crop ( width = 50 , height = 50 ) #NEWLINE# adjusted = crop . adjust ( im ) #NEWLINE# self . assertEqual ( adjusted . size , ( 50 , 50 ) ) #NEWLINE# expected = Image . open ( self . _data_path ( '50x50_crop.png' ) ) #NEWLINE# self . assertImageEqual ( adjusted , expected )