def test_execution_inquiry_secrets(self):
        """Corner case test for Inquiry responses that contain secrets.

        Should properly mask these if the Inquiry is being retrieved
        directly via `execution get` commands.

        TODO(mierdin): Move this once Inquiries get their own data model
        """

        # Test Inquiry response masking is done properly within this model
        masked = self.executions["execution_1"].mask_secrets(
            self.executions["execution_1"].to_serializable_dict()
        )
        self.assertEqual(
            masked["result"]["response"]["secondfactor"], MASKED_ATTRIBUTE_VALUE
        )
        self.assertEqual(
            self.executions["execution_1"].result["response"]["secondfactor"],
            "supersecretvalue",
        )
Corner case test for Inquiry responses that contain secrets.

        Should properly mask these if the Inquiry is being retrieved
        directly via `execution get` commands.

        TODO(mierdin): Move this once Inquiries get their own data model
        
st2common/tests/unit/test_db_execution.py