#NEWLINE# def test_setdefault_with_default_with_existing( self ) : #NEWLINE# #INDENT# properties = PropertyDict ( { #NEWLINE# #INDENT# 'name' : 'Alice' , #NEWLINE# 'age' : 33 , #NEWLINE# #UNINDENT# } ) #NEWLINE# value = properties . setdefault ( 'age' , 34 ) #NEWLINE# assert ( properties == { #NEWLINE# #INDENT# 'name' : 'Alice' , #NEWLINE# 'age' : 33 , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( value == 33 )