witten
/
luminotes
Archived
1
0
Fork 0

Unit test for new parent_id parameter.

This commit is contained in:
Dan Helfman 2007-08-29 01:11:13 +00:00
parent d90f21b17a
commit 191ced02f1
1 changed files with 7 additions and 0 deletions

View File

@ -84,6 +84,13 @@ class Test_notebooks( Test_controller ):
assert result.get( u"note_id" ) == self.note.object_id
assert result.get( u"revision" ) == unicode( self.note.revision )
def test_default_with_parent( self ):
parent_id = "foo"
result = self.http_get( "/notebooks/%s?parent_id=%s" % ( self.notebook.object_id, parent_id ) )
assert result.get( u"notebook_id" ) == self.notebook.object_id
assert result.get( u"parent_id" ) == parent_id
def test_contents( self ):
self.login()