def test_respond(self):
        """Test that a correct response is successful"""

        post_resp = self._do_create_inquiry(INQUIRY_1, RESULT_DEFAULT)
        inquiry_id = self._get_inquiry_id(post_resp)
        response = {"continue": True}
        put_resp = self._do_respond(inquiry_id, response)
        self.assertEqual(response, put_resp.json.get("response"))

        # The inquiry no longer exists, since the status should not be "pending"
        # Get the execution and confirm this.
        inquiry_execution = self._do_get_execution(inquiry_id)
        self.assertEqual(inquiry_execution.json.get("status"), "succeeded")

        # This Inquiry is in a workflow, so has a parent. Assert that the resume
        # was requested for this parent.
        action_service.request_resume.assert_called_once()
Test that a correct response is successful
st2api/tests/unit/controllers/v1/test_inquiries.py