def test_respond_nonexistent_inquiry(self):
        """Test responding to an inquiry that doesn't exist"""
        inquiry_id = "134234"
        args = ["inquiry", "respond", "-r", '"%s"' % RESPONSE_DEFAULT, inquiry_id]
        retcode = self.shell.run(args)
        self.assertEqual(retcode, 1)
        self.assertEqual(
            'ERROR: Resource with id "%s" doesn\'t exist.' % inquiry_id,
            self.stdout.getvalue().strip(),
        )
Test responding to an inquiry that doesn't exist
st2client/tests/unit/test_inquiry.py