def test_ordered_merge(self):
        config = self._make_default_config()
        config['top_file_merging_strategy'] = 'merge'
        config['env_order'] = ['b', 'a', 'c']
        with patch('salt.fileclient.FSClient.envs', MagicMock(return_value=['a', 'b', 'c'])):
            highstate = HighState(config)
            ret = highstate.get_tops()
        self.assertEqual(ret, OrderedDict([('a', [{}]), ('c', [{}]), ('b', [{}])]))
Test to see if the merger respects environment
dataset/ETHPy150Open saltstack/salt/tests/unit/highstateconf_test.py/TopFileMergeTestCase.test_ordered_merge