witten
/
luminotes
Archived
1
0
Fork 0

Fixing broken unit tests due to rename change.

This commit is contained in:
Dan Helfman 2007-11-16 00:35:24 +00:00
parent 4d1cac745e
commit fc2ab3800b
1 changed files with 2 additions and 2 deletions

View File

@ -1657,7 +1657,7 @@ class Test_notebooks( Test_controller ):
assert result[ u"redirect" ].startswith( u"/notebooks/" )
new_notebook_id = result[ u"redirect" ].split( u"/notebooks/" )[ -1 ]
new_notebook_id = result[ u"redirect" ].split( u"/notebooks/" )[ -1 ].split( u"?" )[ 0 ]
notebook = self.database.last_saved_obj
assert isinstance( notebook, Notebook )
@ -1670,7 +1670,7 @@ class Test_notebooks( Test_controller ):
self.login()
result = self.http_post( "/notebooks/create", dict(), session_id = self.session_id )
new_notebook_id = result[ u"redirect" ].split( u"/notebooks/" )[ -1 ]
new_notebook_id = result[ u"redirect" ].split( u"/notebooks/" )[ -1 ].split( u"?" )[ 0 ]
result = cherrypy.root.notebooks.contents(
notebook_id = new_notebook_id,