Ticket #5909: comments_model_tests.diff

File comments_model_tests.diff, 578 bytes (added by scompt, 17 years ago)

Tests for the comments_model patch

  • django/contrib/comments/tests.py

     
     1"""
     2>>> from django.contrib.comments.models import Comment
     3>>> from django.contrib.auth.models import User
     4>>> u = User.objects.create_user('commenttestuser', 'commenttest@example.com', 'testpw')
     5>>> c = Comment(user=u, comment=u'\xe2')
     6>>> c
     7<Comment: commenttestuser: â...>
     8>>> print c
     9commenttestuser: â...
     10"""
     11 No newline at end of file
Back to Top