def test_get_one_failed(self):
        """Test failed retrieval of an Inquiry"""
        inquiry_id = "asdfeoijasdf"
        get_resp = self._do_get_one(inquiry_id, expect_errors=True)
        self.assertEqual(get_resp.status_int, http_client.NOT_FOUND)
        self.assertIn("resource could not be found", get_resp.json["faultstring"])
Test failed retrieval of an Inquiry
st2api/tests/unit/controllers/v1/test_inquiries.py