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))
 def testConfidenceAboveThreshold_BelowThreshold(self):
   text = 'Estimated Confidence: 99%'
   self.assertFalse(update_bug_from_rietveld._ConfidenceAboveThreshold(text))
 def testConfidenceAboveThreshold_AtThreshold(self):
   text = 'Estimated Confidence: 99.5%'
   self.assertTrue(update_bug_from_rietveld._ConfidenceAboveThreshold(text))