witten
/
luminotes
Archived
1
0
Fork 0

Fixed a unit test that was broken based on new Html_cleaner changes to support color tags.

This commit is contained in:
Dan Helfman 2009-05-18 21:25:07 -07:00
parent 1b42644b81
commit 4d4f2ecca6
1 changed files with 2 additions and 2 deletions

View File

@ -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"<h3>new title</h3><span>ha" * 962
new_note_contents = u"<h3>new title</h3><span>ha</span>" * 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"<span>", "" )
assert note.contents == new_note_contents
assert note.startup == startup
assert note.user_id == self.user.object_id
assert note.rank == 0.0