When I run tests, i get 5 similar errors
======================================================================
ERROR: testWrongSubmit (captcha.tests.CaptchaCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-packages/django_simple_captcha-0.1.1-py2.6.egg/ca
ptcha/tests/__init__.py",
line 22, in setUp
self.unicode_store, created =
CaptchaStore.objects.get_or_create(challenge=self.unicode_challenge[0],response=
self.unicode_challenge[1])
File
"/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py", line
123, in get_or_create
return self.get_query_set().get_or_create(**kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py",
line 335, in get_or_create
obj.save(force_insert=True)
File
"/usr/local/lib/python2.6/dist-packages/django_simple_captcha-0.1.1-py2.6.egg/ca
ptcha/models.py",
line 23, in save
self.hashkey = hashlib.new('sha', smart_str(self.challenge) +
str(self.response)).hexdigest()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3:
ordinal not in range(128)
What version of the product are you using? On what operating system?
django-simple-captcha 0.1.1 Ubuntu 9.10
Original issue reported on code.google.com by saraf.saurabh on 27 Jan 2010 at 6:19
Original issue reported on code.google.com by
saraf.saurabh
on 27 Jan 2010 at 6:19