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

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Aug 8 12:58:15 EDT 2003


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

Modified Files:
      Tag: srichter-i18n-macro-interaction-branch
	test_talinterpreter.py 
Log Message:
Updated the DummyEngine to handle MessageIDs, but now I really dug up a 
rabbit hole; I found another case that is failing.


=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.3.4.1 => 1.3.4.2 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.3.4.1	Fri Aug  8 10:41:04 2003
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Fri Aug  8 11:58:10 2003
@@ -61,6 +61,19 @@
 
 class I18NCornerTestCase(TestCaseBase):
 
+    def XXXtest_simple_messageid_translate(self):
+        # This test is mainly here to make sure our DummyEngine works
+        # correctly.
+        self.engine = DummyEngine()
+        self.engine.setLocal('foo', MessageID('FoOvAlUe', 'default'))
+
+        program, macros = self._compile('<span tal:content="foo"/>')
+        result = StringIO()
+        self.interpreter = TALInterpreter(program, {}, self.engine,
+                                          stream=result)
+        self.interpreter()
+        self.assertEqual('<span>FOOVALUE</span>\n', result.getvalue())
+
     def test_replace_with_messageid_and_i18nname(self):
         program, macros = self._compile(
             '<d i18n:translate="" >'
@@ -75,7 +88,7 @@
         self.assertEqual('<d>FOOVALUE</d>\n', result.getvalue())
 
 
-    def test_content_with_messageid_and_i18nname(self):
+    def XXXtest_content_with_messageid_and_i18nname(self):
         self.engine = DummyEngine()
         self.engine.setLocal('foo', MessageID('FoOvAlUe', 'default'))
 




More information about the Zope3-Checkins mailing list