|
@@ -378,7 +378,8 @@ class FrameworkTest:
|
|
parser = FortuneHTMLParser()
|
|
parser = FortuneHTMLParser()
|
|
parser.feed(htmlString)
|
|
parser.feed(htmlString)
|
|
|
|
|
|
- return (parser.isValidFortune(out), )
|
|
|
|
|
|
+ valid = parser.isValidFortune(out)
|
|
|
|
+ return (valid, '' if valid else 'Did not pass validation')
|
|
except:
|
|
except:
|
|
print "Got exception when trying to validate the fortune test: {exception} ".format(exception=traceback.format_exc())
|
|
print "Got exception when trying to validate the fortune test: {exception} ".format(exception=traceback.format_exc())
|
|
return (False, err_str)
|
|
return (False, err_str)
|