[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/form/browser/tests/test_editview.py
Need clearEvents call to avoid seeing registration events generated
Jim Fulton
jim at zope.com
Sun Apr 2 13:00:03 EDT 2006
Log message for revision 66319:
Need clearEvents call to avoid seeing registration events generated
during setup.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/form/browser/tests/test_editview.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/form/browser/tests/test_editview.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/form/browser/tests/test_editview.py 2006-04-02 16:59:58 UTC (rev 66318)
+++ Zope3/branches/jim-adapter/src/zope/app/form/browser/tests/test_editview.py 2006-04-02 17:00:01 UTC (rev 66319)
@@ -25,7 +25,7 @@
from zope.app.testing import ztapi
from zope.app.testing.placelesssetup import PlacelessSetup
-from zope.app.event.tests.placelesssetup import getEvents
+from zope.app.event.tests.placelesssetup import getEvents, clearEvents
from zope.app.form.browser import TextWidget
from zope.app.form.browser.editview import EditView
@@ -108,6 +108,7 @@
super(Test, self).setUp()
ztapi.browserViewProviding(ITextLine, TextWidget, IInputWidget)
ztapi.provideAdapter(IFoo, IBar, FooBarAdapter)
+ clearEvents()
def test_setPrefix_and_widgets(self):
v = EV(C(), TestRequest())
More information about the Zope3-Checkins
mailing list