#NEWLINE# def test_cropped_canvas_fixing_large_crop( ) : #NEWLINE# #INDENT# size = Size ( 20 , 20 ) #NEWLINE# img = builtins . rose . resized ( size ) #NEWLINE# dim = Size ( 50 , 50 ) . at ( ( ( - 25 ) , ( - 25 ) ) ) #NEWLINE# cropped = img . cropped ( dim ) #NEWLINE# assert ( cropped . size == cropped ) #NEWLINE# assert ( cropped [ 0 ] . canvas == size . at ( origin ) )