[Zope3-checkins] CVS: Zope3/src/zope/app/container/browser/tests -
test_adding.py:1.7
Bjorn Tillenius
bjoti777 at student.liu.se
Mon May 10 10:35:03 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/container/browser/tests
In directory cvs.zope.org:/tmp/cvs-serv22202/tests
Modified Files:
test_adding.py
Log Message:
Fixed bug. name was supplied as the default argument to queryUtility.
=== Zope3/src/zope/app/container/browser/tests/test_adding.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/container/browser/tests/test_adding.py:1.6 Thu May 6 11:46:04 2004
+++ Zope3/src/zope/app/container/browser/tests/test_adding.py Mon May 10 10:35:00 2004
@@ -180,6 +180,13 @@
self.assertEqual(adding.request.response._headers['location'],
'/container/+/Thing/screen1=foo')
+ def test_publishTraverse_factory(self):
+ factory = Factory()
+ ztapi.provideUtility(IFactory, factory, 'foo')
+ container = Container()
+ request = TestRequest()
+ adding = Adding(container, request)
+ self.assert_(adding.publishTraverse(request, 'foo') is factory)
def test_constraint_driven_addingInfo():
More information about the Zope3-Checkins
mailing list