#NEWLINE# def test_copy_dict( self ) : #NEWLINE# #INDENT# from shinymud.models.shiny_types import copy_dict #NEWLINE# d = { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# 'c' : 'd' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( d , copy_dict ( d ) ) #NEWLINE# self . assertFalse ( ( d is copy_dict ( d ) ) ) #NEWLINE# foo = copy_dict ( d ) #NEWLINE# foo [ 'e' ] = True #NEWLINE# self . assertTrue ( foo . get ( 'e' , False ) ) #NEWLINE# self . assertFalse ( d . get ( 'e' , False ) )