#NEWLINE# def test_scalar_inplace_mutation_replace_self_flag_modified_set( self ) : #NEWLINE# #INDENT# Foo = self . _fixture ( uselist = False , useobject = False , active_history = False ) #NEWLINE# f = Foo ( ) #NEWLINE# f . someattr = { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _commit_someattr ( f ) #NEWLINE# eq_ ( self . _someattr_history ( f ) , ( ( ) , [ { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ] , ( ) ) ) #NEWLINE# f . someattr = Foo . someattr #NEWLINE# attributes . flag_modified ( f , 'someattr' ) #NEWLINE# eq_ ( self . _someattr_history ( f ) , ( [ { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ] , ( ) , ( ) ) )