def testFailure(cls, rsp, exit=True):
        if rsp['stat'] == "fail":
            sys.stderr.write("%s\n" % (cls.getPrintableError(rsp)))
            if exit: sys.exit(1)
Exit app if the rsp XMLNode indicates failure.
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/MachineLearning/query_imgs/flickrapi2.py/FlickrAPI.testFailure