mirror of
https://github.com/lepture/captcha.git
synced 2025-08-06 18:24:48 +08:00
10 lines
183 B
Python
10 lines
183 B
Python
# coding: utf-8
|
|
|
|
from captcha.image import ImageCaptcha
|
|
|
|
|
|
def test_image_generate():
|
|
captcha = ImageCaptcha()
|
|
data = captcha.generate('1234')
|
|
assert hasattr(data, 'read')
|