[Checkins] SVN: Products.CMFCalendar/trunk/Products/CMFCalendar/browser/event.txt - improved tests

Yvo Schubbe y.2011 at wcm-solutions.de
Mon Feb 21 05:59:55 EST 2011


Log message for revision 120489:
  - improved tests

Changed:
  U   Products.CMFCalendar/trunk/Products/CMFCalendar/browser/event.txt

-=-
Modified: Products.CMFCalendar/trunk/Products/CMFCalendar/browser/event.txt
===================================================================
--- Products.CMFCalendar/trunk/Products/CMFCalendar/browser/event.txt	2011-02-21 10:55:56 UTC (rev 120488)
+++ Products.CMFCalendar/trunk/Products/CMFCalendar/browser/event.txt	2011-02-21 10:59:54 UTC (rev 120489)
@@ -18,6 +18,15 @@
     >>> browser.handleErrors = False
     >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
 
+Use the edit form without input.
+
+    >>> browser.open('http://localhost/site/myEvent/@@edit.html')
+    >>> '[[cmf_default][Edit [[cmf_calendar][Event]]]]' in browser.contents
+    True
+    >>> browser.getControl('[[cmf_default][Change]]').click()
+    >>> '[[cmf_default][Nothing to change.]]' in browser.contents
+    True
+
 Use the edit form with invalid input.
 
     >>> browser.open('http://localhost/site/myEvent/@@edit.html')
@@ -42,14 +51,16 @@
     True
 
 Validate iCal
+
     >>> browser.open('http://localhost/site/myEvent/@@view.ics')
     >>> print browser.headers
     Status: 200...
     Content-Disposition: filename=cmf.ics
     Content-Length: 0
     Content-Type: text/iCal
-    
+
 Validate vCal
+
     >>> browser.open('http://localhost/site/myEvent/@@view.vcs')
     >>> print browser.headers
     Status: 200...



More information about the checkins mailing list