[Checkins] SVN: grokui.admin/trunk/src/grokui/admin/tests/ Tests pass. The database name changed. It's now "main"

Souheil CHELFOUH souheil at chelfouh.com
Thu Apr 29 08:58:22 EDT 2010


Log message for revision 111577:
  Tests pass. The database name changed. It's now "main"
  

Changed:
  U   grokui.admin/trunk/src/grokui/admin/tests/packdatabase.py
  U   grokui.admin/trunk/src/grokui/admin/tests/security.py

-=-
Modified: grokui.admin/trunk/src/grokui/admin/tests/packdatabase.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/tests/packdatabase.py	2010-04-29 12:32:54 UTC (rev 111576)
+++ grokui.admin/trunk/src/grokui/admin/tests/packdatabase.py	2010-04-29 12:58:21 UTC (rev 111577)
@@ -3,7 +3,7 @@
 ============
 
 Create a mammoth-manager, and stuff it with data which can be packed.
-  >>> from zope.testbrowser.testing import Browser
+  >>> from zope.app.wsgi.testlayer import Browser
   >>> browser = Browser()
   >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
   >>> browser.open("http://localhost/")
@@ -28,13 +28,13 @@
 Check the size of the ZODB.
   >>> browser.open("http://localhost/++grokui++/server")
   >>> lines = [ l.strip() for l in browser.contents.split('\\n') ]
-  >>> zodb_size = lines[lines.index("Demo storage 'unnamed'")+  1]
+  >>> zodb_size = lines[lines.index("main")+  1]
   >>> num_zodb_size = int(zodb_size.split(' ')[0])
 
 Now, pack the database.
 
   >>> lines = [ l.strip() for l in browser.contents.split('\\n') ]
-  >>> zodb_size = lines[lines.index("Demo storage 'unnamed'")+  1]
+  >>> zodb_size = lines[lines.index("main")+  1]
   >>> new_num_zodb_size = int(zodb_size.split(' ')[0])
 
 And clean up after ourselves.

Modified: grokui.admin/trunk/src/grokui/admin/tests/security.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/tests/security.py	2010-04-29 12:32:54 UTC (rev 111576)
+++ grokui.admin/trunk/src/grokui/admin/tests/security.py	2010-04-29 12:58:21 UTC (rev 111577)
@@ -156,7 +156,7 @@
 
 We log into the admin screen to set a new notifier URL::
 
-  >>> from zope.testbrowser.testing import Browser
+  >>> from zope.app.wsgi.testlayer import Browser
   >>> browser = Browser()
   >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
   >>> browser.open('http://localhost/++grokui++/@@server')



More information about the checkins mailing list