#NEWLINE# def test_ordered_merge( self ) : #NEWLINE# #INDENT# '\n        Test to see if the merger respects environment\n        ordering\n        ' #NEWLINE# config = self . _make_default_config ( ) #NEWLINE# config [ 'top_file_merging_strategy' ] = 'merge' #NEWLINE# config [ 'env_order' ] = [ 'b' , 'a' , 'c' ] #NEWLINE# with patch ( 'salt.fileclient.FSClient.envs' , MagicMock ( return_value = [ 'a' , 'b' , 'c' ] ) ) : #NEWLINE# #INDENT# highstate = HighState ( ret ) #NEWLINE# ret = highstate . get_tops ( ) #NEWLINE# #UNINDENT# self . assertEqual ( ret , OrderedDict ( [ ( 'a' , [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] ) , ( 'c' , [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] ) , ( 'b' , [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] ) ] ) )