Пример #1
0
	def test_controller_return_something(self):
		controller = CaptchaController()
		controller.random = self.randomStup()
		self.assertEqual('{"operator": "+", "right": "one", "left": "1"}', controller.toJson())
Пример #2
0
def captcha():
    captcha = CaptchaController()
    return captcha.toJson()
Пример #3
0
 def test_controller_return_something(self):
     controller = CaptchaController()
     controller.random = self.randomStup()
     self.assertEqual('{"operator": "+", "right": "one", "left": "1"}',
                      controller.toJson())
Пример #4
0
def captcha():
	captcha = CaptchaController()
	return captcha.toJson()