[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/tests/test_directives.py Merge r27120 from branch:

Philipp von Weitershausen philikon at philikon.de
Fri Aug 13 15:02:12 EDT 2004


Log message for revision 27121:
  Merge r27120 from branch:
    Fix test failures. Code was looking for the wrong
    exception to be raised.
  


Changed:
  U   Zope3/trunk/src/zope/app/form/browser/tests/test_directives.py


-=-
Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_directives.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/tests/test_directives.py	2004-08-13 18:58:33 UTC (rev 27120)
+++ Zope3/trunk/src/zope/app/form/browser/tests/test_directives.py	2004-08-13 19:02:12 UTC (rev 27121)
@@ -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