#NEWLINE# def test_combine_maps_over_multiselection( self ) : #NEWLINE# #INDENT# 'If data has many edit subsets, act on all of them' #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 ( expected . data . subsets ) #NEWLINE# mode . update ( self . data , 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 )