From 4d4f2ecca62d192de2b9747a9786fc0826519b81 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 18 May 2009 21:25:07 -0700 Subject: [PATCH] Fixed a unit test that was broken based on new Html_cleaner changes to support color tags. --- controller/test/Test_notebooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/test/Test_notebooks.py b/controller/test/Test_notebooks.py index 4fea59d..b756c1c 100644 --- a/controller/test/Test_notebooks.py +++ b/controller/test/Test_notebooks.py @@ -2305,7 +2305,7 @@ class Test_notebooks( Test_controller ): # save over an existing note supplying new contents and a new title. the contents # should be too long before they're cleaned/stripped, but short enough after previous_revision = self.note.revision - new_note_contents = u"

new title

ha" * 962 + new_note_contents = u"

new title

ha" * 962 result = self.http_post( "/notebooks/save_note/", dict( notebook_id = self.notebook.object_id, note_id = self.note.object_id, @@ -2346,7 +2346,7 @@ class Test_notebooks( Test_controller ): assert note.object_id == self.note.object_id assert note.title == "new title" - assert note.contents == new_note_contents.replace( u"", "" ) + assert note.contents == new_note_contents assert note.startup == startup assert note.user_id == self.user.object_id assert note.rank == 0.0