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())