From: richardbarran Date: Sat, 1 Aug 2009 19:37:45 +0000 (+0000) Subject: Made a doctest more generic to cope better with user-defined messages. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7d5baa2a8cf7b04f1c53fcd3d856f07c22807129;p=django-jqchat.git Made a doctest more generic to cope better with user-defined messages. git-svn-id: http://django-jqchat.googlecode.com/svn/trunk@8 8369a704-5b4a-11de-992f-fdd7e25b9163 --- diff --git a/jqchat/models.py b/jqchat/models.py index 6334d58..6ff4b67 100644 --- a/jqchat/models.py +++ b/jqchat/models.py @@ -124,8 +124,8 @@ class Message(models.Model): Events: >>> m1 = Message.objects.create_event(user, room, 1) - >>> m1.text - u'john has changed the description of the lobby.
' + >>> u'john has changed' in m1.text + True Note that there are 2 timestamp fields: - a unix timestamp.