]> git.parisson.com Git - django-jqchat.git/commitdiff
Made a doctest more generic to cope better with user-defined messages.
authorrichardbarran <richardbarran@8369a704-5b4a-11de-992f-fdd7e25b9163>
Sat, 1 Aug 2009 19:37:45 +0000 (19:37 +0000)
committerrichardbarran <richardbarran@8369a704-5b4a-11de-992f-fdd7e25b9163>
Sat, 1 Aug 2009 19:37:45 +0000 (19:37 +0000)
git-svn-id: http://django-jqchat.googlecode.com/svn/trunk@8 8369a704-5b4a-11de-992f-fdd7e25b9163

jqchat/models.py

index 6334d589455fb42a74062e2df39da3087c2ed1d5..6ff4b676f9130b2feb8624c9aa9f2ffbe3d7f9a9 100644 (file)
@@ -124,8 +124,8 @@ class Message(models.Model):
 
     Events:
     >>> m1 = Message.objects.create_event(user, room, 1)
-    >>> m1.text
-    u'<strong>john</strong> <em>has changed the description of the lobby.</em><br />'
+    >>> u'<strong>john</strong> <em>has changed' in m1.text
+    True
 
     Note that there are 2 timestamp fields:
     - a unix timestamp.