app/django/contrib/comments/tests.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 01 Oct 2008 21:19:32 +0000
changeset 252 112f36f4598f
parent 54 03e267d67478
permissions -rw-r--r--
Change key_name module usage to path_linkname module (fix to previous commit). Add comments about urls. Add Sponsor views urls for upcoming Sponsor views modules. Patch by: Pawel Solyga Review by: to-be-reviewed

# 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: â...
"""