[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/tests/test_directives.py
Fix test failures. Code was looking for the wrong
Philipp von Weitershausen
philikon at philikon.de
Fri Aug 13 14:58:33 EDT 2004
Log message for revision 27120:
Fix test failures. Code was looking for the wrong
exception to be raised.
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/tests/test_directives.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/tests/test_directives.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/tests/test_directives.py 2004-08-13 18:06:50 UTC (rev 27119)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/tests/test_directives.py 2004-08-13 18:58:33 UTC (rev 27120)
@@ -112,7 +112,7 @@
""")))
v = zapi.queryView(ob, 'add.html', request)
- # expect component lookup as standard macros are not configured
+ # expect to fail as standard macros are not configured
self.assertRaises(NotFoundError, v)
def testEditForm(self):
@@ -137,10 +137,9 @@
""")))
v = zapi.queryView(ob, 'edit.html', request)
- # expect component lookup as standard macros are not configured
- self.assertRaises(ComponentLookupError, v)
+ # expect to fail as standard macros are not configured
+ self.assertRaises(NotFoundError, v)
-
def testEditFormWithMenu(self):
self.assertEqual(zapi.queryView(ob, 'test', request),
None)
@@ -166,10 +165,9 @@
''')))
v = zapi.queryView(ob, 'edit.html', request)
- # expect component lookup as standard macros are not configured
- self.assertRaises(ComponentLookupError, v)
+ # expect to fail as standard macros are not configured
+ self.assertRaises(NotFoundError, v)
-
def testAddFormWithWidget(self):
self.assertEqual(zapi.queryView(ob, 'test', request),
None)
More information about the Zope3-Checkins
mailing list