[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests - testAdding.py:1.7
Marius Gedminas
mgedmin@codeworks.lt
Thu, 12 Dec 2002 06:33:00 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv21266/lib/python/Zope/App/OFS/Container/Views/Browser/tests
Modified Files:
testAdding.py
Log Message:
Merge named-component-configuration-branch
=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testAdding.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testAdding.py:1.6 Mon Nov 18 18:52:59 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testAdding.py Thu Dec 12 06:32:30 2002
@@ -39,7 +39,7 @@
class Container:
__implements__ = IContainer
-
+
def __init__(self):
self._data = {}
@@ -59,7 +59,7 @@
def setUp(self):
PlacelessSetup.setUp(self)
- provideAdapter(IContainer, IZopeContainer, ZopeContainerAdapter)
+ provideAdapter(IContainer, IZopeContainer, ZopeContainerAdapter)
def test(self):
container = Container()
@@ -77,7 +77,7 @@
o = Container() # any old instance will do
result = adding.add(o)
-
+
# Make sure the right events were generated:
self.failUnless(
getEvents(IObjectAddedEvent,
@@ -103,9 +103,9 @@
request = TestRequest()
adding = Adding(container, request)
provideView(IAdding, "Thing", IBrowserPresentation, CreationView)
-
+
self.assertEqual(adding.contentName, None)
- view = adding.publishTraverse(request, 'Thing=')
+ view = adding.publishTraverse(request, 'Thing=')
self.assertEqual(adding.contentName, '')