#NEWLINE# def test_combine_with_collection( self ) : #NEWLINE# #INDENT# 'A data collection input works on each data object' #NEWLINE# mode = EditSubsetMode ( ) #NEWLINE# mode . mode = ReplaceMode #NEWLINE# for i in range ( 5 ) : #NEWLINE# #INDENT# self . data . new_subset ( ) #NEWLINE# #UNINDENT# self . data . edit_subset = list ( self . data . subsets ) #NEWLINE# dc = DataCollection ( [ self . data ] ) #NEWLINE# mode . update ( i , self . state2 ) #NEWLINE# expected = np . array ( [ False , True , True ] ) #NEWLINE# for s in self . data . subsets : #NEWLINE# #INDENT# np . testing . assert_array_equal ( s . to_mask ( ) , expected )