'Verify that the ScanMustStopException stops the scan.'

def test_stop_on_must_stop_exception(self):

    self.exception_plugin.exception_to_raise = ScanMustStopException
    with patch('w3af.core.controllers.w3afCore.om.out') as om_mock:
        self.w3afcore.start()
        error = 'The    following    error    was    detected    and    could    not    be    resolved:\nTest    exception.\n'
        self.assertIn(call.error(error), om_mock.mock_calls)
