app/django/contrib/comments/tests.py
author Todd Larsen <tlarsen@google.com>
Thu, 02 Oct 2008 15:36:08 +0000
changeset 260 8b393bef717a
parent 54 03e267d67478
permissions -rw-r--r--
Fix typo in recent validate.py changes (r682). Patch by: Chen Lunpeng Review by: Todd Larsen

# coding: utf-8

r"""
>>> from django.contrib.comments.models import Comment
>>> from django.contrib.auth.models import User
>>> u = User.objects.create_user('commenttestuser', 'commenttest@example.com', 'testpw')
>>> c = Comment(user=u, comment=u'\xe2')
>>> c
<Comment: commenttestuser: â...>
>>> print c
commenttestuser: â...
"""