Ok I figure it makes sense since you might be running doctest on a
terminal which can't display all unicode characters anyway.
I'm making use of print statements because I like to display data
structures in a clean and understandable format. It's particularly
useful to have clean output when the
On Wed, 2007-05-09 at 02:22 -0700, akaihola wrote:
> I'm having a hard time trying to do my unit testing in unicode. I'm
> using the unicode branch of Django.
>
> Here's a simple tests.py example:
>
> # -*- encoding: utf-8 -*-
> u"""
> >>> print u'\u00e4'
> this output should not match the above
I'm having a hard time trying to do my unit testing in unicode. I'm
using the unicode branch of Django.
Here's a simple tests.py example:
# -*- encoding: utf-8 -*-
u"""
>>> print u'\u00e4'
this output should not match the above test
"""
When I run this with manage.py test, I get the following e