(self, solutions)
return numCorrect >= self.minCorrectSolutions and \
               numIncorrect <= self.maxIncorrectSolutions
Test whether the given solutions are sufficient for this CAPTCHA.
           A given CAPTCHA can only be tested once, after that it is invalid
           and always returns False. This makes random guessing much less effective.
Test whether the given solutions are sufficient for this CAPTCHA.
           A given CAPTCHA can only be tested once, after that it is invalid
           and always returns False. This makes random guessing much less effective.
Test whether the given solutions are sufficient for this CAPTCHA . A given CAPTCHA can only be tested once after that it is invalid and always returns False . This makes random guessing much less effective .
def testSolutions(self, solutions):
        """Test whether the given solutions are sufficient for this CAPTCHA.
           A given CAPTCHA can only be tested once, after that it is invalid
           and always returns False. This makes random guessing much less effective.
           """
        if not self.valid:
            return False
        self.valid = False

        numCorrect = 0
        numIncorrect = 0

        for solution in solutions:
            if solution in self.solutions:
                numCorrect += 1
            else:
                numIncorrect += 1

        return numCorrect >= self.minCorrectSolutions and \
               numIncorrect <= self.maxIncorrectSolutions
def testSolutions ( self , solutions ) : if not self . valid : return False self . valid = False numCorrect = 0 numIncorrect = 0 for solution in solutions : if solution in self . solutions : numCorrect += 1 else : numIncorrect += 1 return numCorrect >= self . minCorrectSolutions and numIncorrect <= self . maxIncorrectSolutions