[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests - testAdding.py:1.6.16.1
Marius Gedminas
mgedmin@codeworks.lt
Wed, 11 Dec 2002 10:14:34 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv22255/lib/python/Zope/App/OFS/Container/Views/Browser/tests
Modified Files:
Tag: named-component-configuration-branch
testAdding.py
Log Message:
Bugfix: it used to be possible to delete a ConfigurationManager with active
or registered configurations without unregistering them
=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testAdding.py 1.6 => 1.6.16.1 ===
--- 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 Wed Dec 11 10:14:03 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, '')