Log message for revision 71969:
  added test for Collector #2261 (no fix for the problem so far)
  

Changed:
  U   Zope/trunk/lib/python/webdav/tests/testPUT_factory.py

-=-
Modified: Zope/trunk/lib/python/webdav/tests/testPUT_factory.py
===================================================================
--- Zope/trunk/lib/python/webdav/tests/testPUT_factory.py       2007-01-12 
10:02:40 UTC (rev 71968)
+++ Zope/trunk/lib/python/webdav/tests/testPUT_factory.py       2007-01-12 
15:31:05 UTC (rev 71969)
@@ -67,7 +67,24 @@
         put(request, request.RESPONSE)
         self.failUnless('doc' in self.folder.objectIds())
 
+    def testCollector2261(self):
+        from OFS.Folder import manage_addFolder
+        from OFS.DTMLMethod import addDTMLMethod
 
+        manage_addFolder(self.app, 'A')
+        addDTMLMethod(self.app, 'a', file='I am file a')
+        manage_addFolder(self.app.A, 'B')
+        request = self.app.REQUEST
+        # this should create 'a' within /A/B containing 'bar'
+        put = request.traverse('/A/B/a')
+        put(request, request.RESPONSE)
+        # PUT should no acquire A.a
+        self.assertEqual(str(self.app.A.a), 'I am file a', 'PUT factory should 
acquire content')
+        # check for the newly created file
+        self.assertEqual(str(self.app.A.B.a), 'bar')
+
+
+
 def test_suite():
     return unittest.TestSuite((
         unittest.makeSuite(TestPUTFactory),

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to