def test_setvalue_uneven_path(self):
        mock = MagicMock(side_effect=RuntimeError('error'))
        with patch.object(_Augeas, 'match', mock):
            self.assertRaises(SaltInvocationError, augeas_cfg.setvalue,
                              ['/files/etc/hosts/1/canonical', 'localhost'])
Search for a plugin
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/augeas_cfg_test.py/AugeasCfgTestCase.test_setvalue_uneven_path--crossover with--dataset/ETHPy150Open pingali/dgit/dgitcore/plugins/common.py/PluginManager.search