瀏覽代碼

verify Fix for the plaintext validation

Mike Smith 11 年之前
父節點
當前提交
3d510b8b9c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      toolset/benchmark/framework_test.py

+ 2 - 2
toolset/benchmark/framework_test.py

@@ -168,7 +168,7 @@ class FrameworkTest:
   #
   #
   ############################################################
   ############################################################
   def validateFortune(self, htmlString):
   def validateFortune(self, htmlString):
-    pass
+    return True
 
 
   ############################################################
   ############################################################
   # Validates the jsonString is an array with a length of
   # Validates the jsonString is an array with a length of
@@ -195,7 +195,7 @@ class FrameworkTest:
   #
   #
   ############################################################
   ############################################################
   def validatePlaintext(self, jsonString):
   def validatePlaintext(self, jsonString):
-    return jsonString.lower() == "hello, world!"
+    return jsonString.lower().strip() == "hello, world!"
 
 
   ############################################################
   ############################################################
   # start(benchmarker)
   # start(benchmarker)