def test_a2dissite_exception(self):
        mock = MagicMock(side_effect=Exception('error'))
        with patch.dict(deb_apache.__salt__, {'cmd.retcode': mock}):
            self.assertEqual(str(deb_apache.a2dissite('saltstack.com')),
                             'error')

    # 'check_mod_enabled' function tests: 2
This test based on a previously failing issue here:
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/deb_apache_test.py/DebApacheTestCase.test_a2dissite_exception--crossover with--dataset/ETHPy150Open fchollet/keras/tests/keras/layers/test_recurrent.py/test_masking_layer