[Checkins] SVN: grokui.admin/trunk/src/grokui/admin/tests/apps.py Update tests.

Uli Fouquet uli at gnufix.de
Tue Mar 16 22:16:10 EDT 2010


Log message for revision 110010:
  Update tests.
  

Changed:
  U   grokui.admin/trunk/src/grokui/admin/tests/apps.py

-=-
Modified: grokui.admin/trunk/src/grokui/admin/tests/apps.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/tests/apps.py	2010-03-17 02:15:38 UTC (rev 110009)
+++ grokui.admin/trunk/src/grokui/admin/tests/apps.py	2010-03-17 02:16:05 UTC (rev 110010)
@@ -75,6 +75,19 @@
   ...<a href="http://localhost/my-new-mammoth-manager">
   ...my-new-mammoth-manager...
 
+If we try to create an application with an already existing name, this
+won't work, but the UI will tell us:
+
+  >>> browser.open("http://localhost/++grokui++/applications")
+  >>> subform = browser.getForm(name='grokui.admin.tests.apps.MammothManager')
+  >>> subform.getControl(name='name').value = 'my-new-mammoth-manager'
+  >>> subform.getControl('Create').click()
+
+  >>> print browser.contents
+  <html xmlns="http://www.w3.org/1999/xhtml">
+  ...Name `my-new-mammoth-manager` already in use.
+  ...Please choose another name...
+
 We are able to delete installed mammoth-managers
 
   >>> browser.open("http://localhost/++grokui++/applications")



More information about the checkins mailing list