#NEWLINE# def test_init_add_from_settings_and_override_key( self ) : #NEWLINE# #INDENT# settings . SHRINK_THE_WEB = { #NEWLINE# #INDENT# 'stwaccesskeyid' : 'key' , #NEWLINE# 'stwanewkey' : 'newkey' , #NEWLINE# #UNINDENT# } #NEWLINE# node = FormatSTWImageNode ( 'url' , 'alt' , stwaccesskeyid = 'overridekey' , stwsize = 'lrg' ) #NEWLINE# self . assertEqual ( 'url' , ( '%s' % node . url ) ) #NEWLINE# self . assertEqual ( 'alt' , node . alt ) #NEWLINE# self . assertEqual ( 'overridekey' , self . kwargs [ 'stwaccesskeyid' ] ) #NEWLINE# self . assertEqual ( 'newkey' , node . kwargs [ 'stwanewkey' ] )