#NEWLINE# def test_copy( self ) : #NEWLINE# #INDENT# 'Check that copy works correctly' #NEWLINE# id_scope = IdScope ( ) #NEWLINE# m1 = self . create_group ( id_scope ) #NEWLINE# m2 = copy . copy ( m2 ) #NEWLINE# self . assertEquals ( m1 , m2 ) #NEWLINE# self . assertEquals ( m1 . id , m2 . id ) #NEWLINE# m3 = m1 . do_copy ( True , id_scope , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEquals ( m1 , m3 ) #NEWLINE# self . assertNotEquals ( m1 . id , m3 . id )