[CMF-checkins] CVS: CMF/CMFCore/tests - test_FSPageTemplate.py:1.4.2.1
Tres Seaver
tseaver@zope.com
Thu, 4 Apr 2002 16:36:31 -0500
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv21969/tests
Modified Files:
Tag: CMF-1_3-branch
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.4.2.1 ===
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 ):
"""