コード例 #1
0
ファイル: tests.py プロジェクト: githubber/weblate
 def test_generate(self):
     '''
     Test generating of captcha for every operator.
     '''
     captcha = MathCaptcha()
     for operator in MathCaptcha.operators:
         captcha.operators = (operator,)
         self.assertIn(operator, captcha.generate_question())