def test_a2dismod_exception(self):
        mock = MagicMock(side_effect=Exception('error'))
        with patch.dict(deb_apache.__salt__, {'cmd.retcode': mock}):
            self.assertEqual(str(deb_apache.a2dismod('vhost_alias')),
                             'error')

    # 'check_conf_enabled' function tests: 2
Read data from filename and return an IPCNetlist
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/deb_apache_test.py/DebApacheTestCase.test_a2dismod_exception--crossover with--dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/ipc356.py/read