From 7d5baa2a8cf7b04f1c53fcd3d856f07c22807129 Mon Sep 17 00:00:00 2001 From: richardbarran Date: Sat, 1 Aug 2009 19:37:45 +0000 Subject: [PATCH] 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 --- jqchat/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.5