'Verify that the ScanMustStopByUserRequest stops the scan.'

def test_stop_by_user_request(self):

    self.exception_plugin.exception_to_raise = ScanMustStopByUserRequest
    with patch('w3af.core.controllers.w3afCore.om.out') as om_mock:
        self.w3afcore.start()
        message = 'Test    exception.'
        self.assertIn(call.information(message), om_mock.mock_calls)
