#NEWLINE# def test_taller_image_gets_shrinked_to_ratio_with_nocrop( self ) : #NEWLINE# #INDENT# i = Image . new ( 'RGB' , ( 100 , 200 ) , BLACK ) #NEWLINE# self . format . nocrop = True #NEWLINE# f = Formatter ( i , self . format ) #NEWLINE# ( i , crop_box ) = f . format ( ) #NEWLINE# tools . assert_equals ( None , f ) #NEWLINE# tools . assert_equals ( ( 50 , 100 ) , i . size )