[Checkins] SVN: grokapps/gbe99bottles/src/gbe99bottles/app.txt Fixed functional test

Michael Haubenwallner michael at d2m.at
Sat Aug 16 03:27:32 EDT 2008


Log message for revision 89906:
  Fixed functional test

Changed:
  U   grokapps/gbe99bottles/src/gbe99bottles/app.txt

-=-
Modified: grokapps/gbe99bottles/src/gbe99bottles/app.txt
===================================================================
--- grokapps/gbe99bottles/src/gbe99bottles/app.txt	2008-08-16 07:21:58 UTC (rev 89905)
+++ grokapps/gbe99bottles/src/gbe99bottles/app.txt	2008-08-16 07:27:32 UTC (rev 89906)
@@ -5,20 +5,20 @@
 
 Let's first create an instance of the Wall at the top level:
 
-   >>> from gbe99bottles.app import Wall
+   >>> from gbe99bottles.app import Song
    >>> root = getRootFolder()
-   >>> root['wall'] = Wall()
+   >>> root['song'] = Song()
 
 Creating the wall implicitely puts 99 beers on it.
 
-   >>> root['wall'].contents()
+   >>> root['song']['wall'].contents()
    99
 
 Create a Browser and visit the instance you just created:
 
    >>> from zope.testbrowser.testing import Browser
    >>> browser = Browser()
-   >>> browser.open('http://localhost/wall')
+   >>> browser.open('http://localhost/song')
 
 Sing the '99 Bottles of Beer' Song (original lyrics at
 http://99-bottles-of-beer.net/lyrics.html):
@@ -38,6 +38,6 @@
 
 Again check the number of beers on the wall.
 
-   >>> root['wall'].contents()
+   >>> root['song']['wall'].contents()
    99
    
\ No newline at end of file



More information about the Checkins mailing list