def METHOD_NAME(
    self, mock_service_config, mock_bucket_rules_engine,
    mock_iam_rules_engine):
    """Test that the 'scanner_index_id' *is* initialized.
    We have 2 runnable scanners. The 'scanner_index_id' should be
    initialized only once though.
    """
    mock_service_config.get_global_config.return_value = FAKE_GLOBAL_CONFIGS
    mock_service_config.get_scanner_config.return_value = TWO_SCANNERS
    mock_service_config.engine = mock.MagicMock()
    mock_service_config.model_manager = mock.MagicMock()
    mock_scoped_session = mock.MagicMock()
    mock_data_access = mock.MagicMock()
    mock_service_config.model_manager.get.return_value = (
        mock_scoped_session, mock_data_access)
    mock_data_access.scanner_iter.return_value = []
    with mock.patch.object(scanner, 'init_scanner_index') as init_mock:
        with mock.patch.object(scanner, 'mark_scanner_index_complete') as closing_mock:
            scanner.run('m1', mock.MagicMock(), mock_service_config)
            self.assertTrue(init_mock.called)
            self.assertEqual(1, init_mock.call_count)
            self.assertTrue(closing_mock.called)
            self.assertEqual(1, closing_mock.call_count)