def hydrate_suite(self, bundle):

        # CREATE
        if bundle.request.META['REQUEST_METHOD'] == 'POST':
            suite_id = self._id_from_uri(bundle.data['suite'])
            suite = Suite.objects.get(id=suite_id)
            run_id = self._id_from_uri(bundle.data['run'])
            run = Run.objects.get(id=run_id)
            if suite.product.id != run.productversion.product.id:
                error_message = str(
                    "suite's product must match run's product."
                )
                logger.error(
                    "\n".join([error_message, "suite prod: %s, run prod: %s"]),
                    suite.product.id, run.productversion.product.id)
                raise ImmediateHttpResponse(
                    response=http.HttpBadRequest(error_message))

        return bundle
Receive a Fitbit response containing a verification code. Use the code
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/execution/api.py/RunSuiteResource.hydrate_suite--crossover with--dataset/ETHPy150Open orcasgit/python-fitbit/gather_keys_oauth2.py/OAuth2Server.index