[Zope3-checkins] CVS: Products3/z3checkins/ftests - test_z3checkins.py:1.9

Gintautas Miliauskas gintas at pov.lt
Sat May 15 09:23:59 EDT 2004


Update of /cvs-repository/Products3/z3checkins/ftests
In directory cvs.zope.org:/tmp/cvs-serv18004/ftests

Modified Files:
	test_z3checkins.py 
Log Message:
Made IMessage derived from IMessageUpload so that the precondition checker
wouldn't barf in functional tests.

Added a functional test snippet to make sure that a 'Checkin dessage' is
offered in the 'Add' menu.


=== Products3/z3checkins/ftests/test_z3checkins.py 1.8 => 1.9 ===
--- Products3/z3checkins/ftests/test_z3checkins.py:1.8	Wed Apr  7 08:11:21 2004
+++ Products3/z3checkins/ftests/test_z3checkins.py	Sat May 15 09:23:59 2004
@@ -51,6 +51,13 @@
             self.assertEqual(response.getStatus(), 200)
 
     def test_add_checkin_message(self):
+        response = self.publish('/z3c/@@+',
+                                basic='mgr:mgrpw',
+                                form={'field.data': self.open('msg1.txt'),
+                                      'UPDATE_SUBMIT': u'Submit'})
+        self.assertEqual(response.getStatus(), 200)
+        self.assertEqual(response.getBody().count("Checkin message"), 1)
+
         response = self.publish('/z3c/+/CheckinMessage',
                                 basic='mgr:mgrpw',
                                 form={'field.data': self.open('msg1.txt'),




More information about the Zope3-Checkins mailing list