#NEWLINE# def test_can_decrypt( self ) : #NEWLINE# #INDENT# encrypted_str = 'hELdyDzyYtjXU5GhGxJVHjRvGrSP_iYKnIQbq_MuVq86rSObCeJvo2iXFRUjLgsU9wDzhqK9J_SHmpxDJHW_rBD8eilO26x2M_hzJfGB-V9cGF65GO_7CgJXI8Ktw188' #NEWLINE# decrypted = self . cryptor . decrypt ( encrypted_str ) #NEWLINE# expect ( decrypted ) . not_to_be_null ( ) #NEWLINE# expect ( decrypted ) . not_to_be_an_error ( ) #NEWLINE# expect ( decrypted ) . not_to_be_empty ( ) #NEWLINE# expect ( decrypted [ 'width' ] ) . to_equal ( 300 ) #NEWLINE# expect ( decrypted [ 'height' ] ) . to_equal ( 300 ) #NEWLINE# expect ( decrypted [ 'smart' ] ) . to_be_true ( ) #NEWLINE# expect ( decrypted [ 'fit_in' ] ) . to_be_false ( ) #NEWLINE# expect ( decrypted [ 'horizontal_flip' ] ) . to_be_true ( ) #NEWLINE# expect ( decrypted [ 'vertical_flip' ] ) . to_be_true ( ) #NEWLINE# expect ( decrypted [ 'halign' ] ) . to_equal ( 'center' ) #NEWLINE# expect ( decrypted [ 'valign' ] ) . to_equal ( 'middle' ) #NEWLINE# expect ( decrypted [ 'crop' ] [ 'left' ] ) . to_equal ( 10 ) #NEWLINE# expect ( decrypted [ 'crop' ] [ 'top' ] ) . to_equal ( 11 ) #NEWLINE# expect ( decrypted [ 'crop' ] [ 'right' ] ) . to_equal ( 12 ) #NEWLINE# expect ( decrypted [ 'crop' ] [ 'bottom' ] ) . to_equal ( 13 ) #NEWLINE# expect ( decrypted [ 'filters' ] ) . to_equal ( 'some_filter()' ) #NEWLINE# image_hash = hashlib . md5 ( '/some/image.jpg' ) . hexdigest ( ) #NEWLINE# expect ( decrypted [ 'image_hash' ] ) . to_equal ( image_hash )