def get_discovery(self, **params):
        if 'source_type' not in params:
            params['source_type'] = 'IMAP'

        all_args = req_args = ['source_type', 'email']

        params = helpers.sanitize_params(params, all_args, req_args)

        return Discovery(self, self._request_uri('discovery', params=params))
Verify the cron job creates the correct metric.
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py/Api.get_discovery--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/kpi/tests/test_cron.py/CronJobTests.test_update_l10n_metric_cron