#NEWLINE# def test_clone( self ) : #NEWLINE# #INDENT# x = Data ( id = [ 0 , 1 , 2 ] ) #NEWLINE# y = Data ( id = [ 0 , 1 , 2 ] , x = [ 1 , 2 , 3 ] ) #NEWLINE# x . join_on_key ( y , 'id' , 'id' ) #NEWLINE# dc = DataCollection ( [ dc , y ] ) #NEWLINE# dc = clone ( dc ) #NEWLINE# ( x , y ) = dc #NEWLINE# s = x . new_subset ( ) #NEWLINE# s . subset_state = ( y . id [ 'x' ] > 1 ) #NEWLINE# assert_array_equal ( s . to_mask ( ) , [ False , True , True ] )