def test_match_runtime_error(self):
        mock = MagicMock(side_effect=RuntimeError('error'))
        with patch.object(_Augeas, 'match', mock):
            self.assertEqual(augeas_cfg.match('/etc/service-name', 'ssh'), {})

    # 'remove' function tests: 2
registerPackage(package: python package, name: str) -> None
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/augeas_cfg_test.py/AugeasCfgTestCase.test_match_runtime_error--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_registry.py/SpreadsheetRegistry.registerPackage