#NEWLINE# def test_constructor_copy( self ) : #NEWLINE# #INDENT# cp = SparseArray ( self . arr , copy = True ) #NEWLINE# cp . sp_values [ : 3 ] = 0 #NEWLINE# self . assertFalse ( ( self . arr . sp_values [ : 3 ] == 0 ) . any ( ) ) #NEWLINE# not_copy = SparseArray ( self . arr ) #NEWLINE# not_copy . sp_values [ : 3 ] = 0 #NEWLINE# self . assertTrue ( ( self . arr . sp_values [ : 3 ] == 0 ) . all ( ) )