[CMF-checkins] CVS: CMF/CMFCore/tests - test_TypesTool.py:1.19

Florent Guillaume fg@nuxeo.com
Fri, 14 Mar 2003 12:25:14 -0500


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv32445/CMFCore/tests

Modified Files:
	test_TypesTool.py 
Log Message:
Fix previous change in exception used.

=== CMF/CMFCore/tests/test_TypesTool.py 1.18 => 1.19 ===
--- CMF/CMFCore/tests/test_TypesTool.py:1.18	Mon Jan  6 15:41:10 2003
+++ CMF/CMFCore/tests/test_TypesTool.py	Fri Mar 14 12:25:14 2003
@@ -229,12 +229,12 @@
         marker = []
         self.assertEqual( id( ti.getActionById( 'view', marker ) )
                         , id( marker ) )
-        self.assertRaises( TypeError, ti.getActionById, 'view' )
+        self.assertRaises( ValueError, ti.getActionById, 'view' )
 
         ti = self._makeInstance( 'Foo', actions=self.ACTION_LIST )
         self.assertEqual( id( ti.getActionById( 'foo', marker ) )
                         , id( marker ) )
-        self.assertRaises( TypeError, ti.getActionById, 'foo' )
+        self.assertRaises( ValueError, ti.getActionById, 'foo' )
         
         action = ti.getActionById( 'view' )
         self.assertEqual( action, 'foo_view' )