[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_talinterpreter.py:1.3.4.7

Fred L. Drake, Jr. fred at zope.com
Fri Aug 8 15:29:41 EDT 2003


Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv9088

Modified Files:
      Tag: srichter-i18n-macro-interaction-branch
	test_talinterpreter.py 
Log Message:
fix test to ensure an expcetion is raised


=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.3.4.6 => 1.3.4.7 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.3.4.6	Fri Aug  8 13:57:32 2003
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Fri Aug  8 14:29:37 2003
@@ -117,10 +117,10 @@
         self._check(program, '<div><span>FOOVALUE</span></div>\n')
 
     def test_content_with_messageid_and_i18nname_and_i18ntranslate(self):
-        program, macros = self._compile(
-            '<span i18n:translate="" tal:content="foo" i18n:name="foo_name"/>'
-            )
-        self._check(program, '<span>FOOVALUE</span>\n')
+        self.assertRaises(
+            TALError,
+            self._compile,
+            '<span i18n:translate="" tal:content="foo" i18n:name="foo_name"/>')
 
     def test_content_with_plaintext_and_i18nname_and_i18ntranslate(self):
         # Let's tell the user this is incredibly silly!




More information about the Zope3-Checkins mailing list