[Checkins] SVN: grokui.admin/branches/introspectorless/src/grokui/admin/tests/ Update tests.

Uli Fouquet uli at gnufix.de
Tue Sep 15 07:50:54 EDT 2009


Log message for revision 104037:
  Update tests.

Changed:
  U   grokui.admin/branches/introspectorless/src/grokui/admin/tests/apps.py
  U   grokui.admin/branches/introspectorless/src/grokui/admin/tests/packdatabase.py

-=-
Modified: grokui.admin/branches/introspectorless/src/grokui/admin/tests/apps.py
===================================================================
--- grokui.admin/branches/introspectorless/src/grokui/admin/tests/apps.py	2009-09-15 11:48:53 UTC (rev 104036)
+++ grokui.admin/branches/introspectorless/src/grokui/admin/tests/apps.py	2009-09-15 11:50:54 UTC (rev 104037)
@@ -52,23 +52,13 @@
 
 Launch the added mammoth manager
 
-  >>> mylink = browser.getLink('my-mammoth-manager (MammothManager)').click()
+  >>> mylink = browser.getLink('my-mammoth-manager').click()
   >>> print browser.contents
   Let's manage some mammoths!
 
   >>> print browser.url
   http://localhost/my-mammoth-manager
 
-We can go to the object browser for every installed application:
-
-  >>> browser.open("http://localhost/applications")
-  >>> browser.getLink('object browser').click()
-  >>> print browser.contents
-  <html xmlns="http://www.w3.org/1999/xhtml">
-  ...
-  ...<span ...>...<a href=...>MammothManager</a> object at ...></span>
-  ... 
-
 We can also rename applications. For this we choose the application we
 installed and click `Rename`::
 
@@ -97,7 +87,6 @@
   ...
   ...<a href="http://localhost/my-new-mammoth-manager">
   ...my-new-mammoth-manager
-  ...(MammothManager)
   ...
   
 We are able to delete installed mammoth-managers

Modified: grokui.admin/branches/introspectorless/src/grokui/admin/tests/packdatabase.py
===================================================================
--- grokui.admin/branches/introspectorless/src/grokui/admin/tests/packdatabase.py	2009-09-15 11:48:53 UTC (rev 104036)
+++ grokui.admin/branches/introspectorless/src/grokui/admin/tests/packdatabase.py	2009-09-15 11:50:54 UTC (rev 104037)
@@ -18,12 +18,12 @@
   >>> browser = Browser()
   >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
   >>> browser.open("http://localhost/")
+
   >>> subform = browser.getForm(name='StuffedMammoth')
   >>> subform.getControl('Name your new app:').value = 'my-stuffed-mammoth'
   >>> subform.getControl('Create').click()
+  >>> mylink = browser.getLink('my-stuffed-mammoth').click()
 
-  >>> mylink = browser.getLink('my-stuffed-mammoth (StuffedMammoth)').click()
-
 Stuff this mammoth.
   >>> url = browser.url
   >>> browser.open(url+"?stuffing=fresh+vegetables")



More information about the checkins mailing list