[CMF-checkins] CVS: CMF/CMFCore/tests - test_FSPageTemplate.py:1.5
Tres Seaver
tseaver@zope.com
Thu, 4 Apr 2002 16:39:06 -0500
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv23634/CMFCore/tests
Modified Files:
test_FSPageTemplate.py
Log Message:
- Merge Shane's fix for LAG Zope raising new exception type.
=== CMF/CMFCore/tests/test_FSPageTemplate.py 1.4 => 1.5 ===
script = self._makeOne( 'testPTbad', 'testPTbad.pt' )
script = script.__of__(self.root)
- self.assertRaises(Undefined,script)
+
+ try: # can't use assertRaises, because different types raised.
+ script()
+ except (Undefined, KeyError):
+ pass
+ else:
+ self.fail('Calling a bad template did not raise an exception')
def test_caching( self ):
"""