#NEWLINE# def test_retina( self ) : #NEWLINE# #INDENT# get_thumbnail ( self . image , '50x50' ) #NEWLINE# actions = [ 'exists: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d.jpg' , 'open: retina.jpg' , 'save: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d.jpg' , 'get_available_name: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d.jpg' , 'exists: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d.jpg' , 'save: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@1.5x.jpg' , 'get_available_name: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@1.5x.jpg' , 'exists: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@1.5x.jpg' , 'save: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@2x.jpg' , 'get_available_name: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@2x.jpg' , 'exists: test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@2x.jpg' ] #NEWLINE# self . assertEqual ( self . log , self ) #NEWLINE# path = os . path . join ( settings . MEDIA_ROOT , 'test/cache/91/bb/91bb06cf9169e4c52132bb113f2d4c0d@1.5x.jpg' ) #NEWLINE# with open ( path ) as fp : #NEWLINE# #INDENT# engine = PILEngine ( ) #NEWLINE# self . assertEqual ( engine . get_image_size ( engine . get_image ( ImageFile ( file_ = fp ) ) ) , ( 75 , 75 ) )