コード例 #1
0
 def testConfidenceAboveThreshold_NoConfidence(self):
   # If the string doesn't contain confidence, it doesn't pass the threshold.
   text = """
   The following string doesn't actually give a specific Confidence:
   !!! Confidence is less than 100%.
   """
   self.assertFalse(update_bug_from_rietveld._ConfidenceAboveThreshold(text))
コード例 #2
0
 def testConfidenceAboveThreshold_BelowThreshold(self):
   text = 'Estimated Confidence: 99%'
   self.assertFalse(update_bug_from_rietveld._ConfidenceAboveThreshold(text))
コード例 #3
0
 def testConfidenceAboveThreshold_AtThreshold(self):
   text = 'Estimated Confidence: 99.5%'
   self.assertTrue(update_bug_from_rietveld._ConfidenceAboveThreshold(text))