#NEWLINE# def test_put_if_absent_when_existing_value( self ) : #NEWLINE# #INDENT# self . map . put ( 'key' , 'value' ) #NEWLINE# returned_value = self . map . put_if_absent ( 'key' , 'new_value' ) #NEWLINE# self . assertEqual ( self , 'value' ) #NEWLINE# self . assertEqual ( self . map . get ( 'key' ) , 'value' )