def test_get_all(self):
        """Test retrieval of a list of Inquiries"""
        inquiry_count = 5
        for i in range(inquiry_count):
            self._do_create_inquiry(INQUIRY_1, RESULT_DEFAULT)
        get_all_resp = self._do_get_all()
        inquiries = get_all_resp.json
        self.assertEqual(get_all_resp.headers["X-Total-Count"], str(len(inquiries)))
        self.assertIsInstance(inquiries, list)
        self.assertEqual(len(inquiries), inquiry_count)
Test retrieval of a list of Inquiries
st2api/tests/unit/controllers/v1/test_inquiries.py