Esempio n. 1
0
 def __checkResult(self, result, expectation):
     try:
         if result["rc"] != 0 or WBXTF.WBXTFEqualWithoutType(
                 expectation, result["result"]["result"]) == False:
             return False
         return True
     except Exception:
         return False
Esempio n. 2
0
 def __checkResults(self, results, expectation, nCount=-1):
     try:
         if nCount >= 0 and nCount != len(results):
             return False
         for res in results:
             if res["result"]["rc"] != 0:
                 return False
             if WBXTF.WBXTFEqualWithoutType(
                     expectation, res["result"]["result"]) == False:
                 return False
         return True
     except Exception:
         return False