def test_respond_timeout_rejected(self):
        """Test that responding to a timed-out Inquiry fails"""

        post_resp = self._do_create_inquiry(
            INQUIRY_TIMEOUT, RESULT_DEFAULT, status="timeout"
        )
        inquiry_id = self._get_inquiry_id(post_resp)
        response = {"continue": True}
        put_resp = self._do_respond(inquiry_id, response, expect_errors=True)
        self.assertEqual(put_resp.status_int, http_client.BAD_REQUEST)
        self.assertIn(
            "timed out and cannot be responded to", put_resp.json["faultstring"]
        )
Test that responding to a timed-out Inquiry fails
st2api/tests/unit/controllers/v1/test_inquiries.py