def test_get_all_decrease_after_respond(self):
        """Test that the inquiry list decreases when we respond to one of them"""

        # Create inquiries
        inquiry_count = 5
        for i in range(inquiry_count):
            self._do_create_inquiry(INQUIRY_2, RESULT_DEFAULT)
        get_all_resp = self._do_get_all()
        inquiries = get_all_resp.json
        self.assertIsInstance(inquiries, list)
        self.assertEqual(len(inquiries), inquiry_count)

        # Respond to one of them
        response = {"continue": True}
        self._do_respond(inquiries[0].get("id"), response)

        # Ensure the list is one smaller
        get_all_resp = self._do_get_all()
        inquiries = get_all_resp.json
        self.assertIsInstance(inquiries, list)
        self.assertEqual(len(inquiries), inquiry_count - 1)
Test that the inquiry list decreases when we respond to one of them
st2api/tests/unit/controllers/v1/test_inquiries.py