#NEWLINE# def test_cms_plugin_icon_src_with_options( self ) : #NEWLINE# #INDENT# image_plugin = self . create_plugin ( ) #NEWLINE# option_kwargs = { #NEWLINE# #INDENT# 'name' : 'Default thumbnail 175x175 crop upscale' , #NEWLINE# 'width' : 175 , #NEWLINE# 'height' : 175 , #NEWLINE# 'crop' : True , #NEWLINE# 'upscale' : True , #NEWLINE# #UNINDENT# } #NEWLINE# thumbnail_option = ThumbnailOption ( ** option_kwargs ) #NEWLINE# thumbnail_option . save ( ) #NEWLINE# image_plugin . thumbnail_option = thumbnail_option #NEWLINE# image_plugin . save ( ) #NEWLINE# image_plugin = self . refresh ( image_plugin ) #NEWLINE# plugin_instance = image_plugin . get_plugin_instance ( ) [ 1 ] #NEWLINE# thumbnail = plugin_instance . icon_src ( image_plugin ) #NEWLINE# self . assertGreater ( len ( thumbnail ) , 7 )