[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTML.py:1.14.70.1
Chris McDonough
chrism@zope.com
Mon, 21 Jul 2003 12:39:05 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv17213/lib/python/DocumentTemplate/tests
Modified Files:
Tag: Zope-2_7-branch
testDTML.py
Log Message:
Merge changes from HEAD since the release of Zope 2.7a1 into the Zope-2_7-branch in preparation for release of Zope 2.7b1.
=== Zope/lib/python/DocumentTemplate/tests/testDTML.py 1.14 => 1.14.70.1 ===
--- Zope/lib/python/DocumentTemplate/tests/testDTML.py:1.14 Wed Aug 14 18:29:53 2002
+++ Zope/lib/python/DocumentTemplate/tests/testDTML.py Mon Jul 21 12:35:31 2003
@@ -43,6 +43,9 @@
def d(**kw): return kw
+class PukeError(Exception):
+ """Exception raised in test code."""
+
class DTMLTests (unittest.TestCase):
doc_class = HTML
@@ -353,7 +356,7 @@
puke__roles__ = None # Public
def puke(self):
- raise 'Puke', 'raaalf'
+ raise PukeError('raaalf')
html=self.doc_class(
"""
@@ -366,7 +369,7 @@
""")
try:
html(spam=foo())
- except 'Puke':
+ except PukeError:
# Passed the test.
pass
else: