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

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Mar 23 14:18:16 EST 2004


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

Modified Files:
	test_talinterpreter.py 
Log Message:


Macro name is stored in reserved varaibale name 'macroname'.




=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.10 => 1.11 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.10	Tue Mar 23 11:29:20 2004
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Tue Mar 23 14:18:15 2004
@@ -61,17 +61,17 @@
         self.macro[0] = ("version", "duh")
 
 
-class MacroNamesTest(TestCaseBase):
+class MacroFunkyErrorTest(TestCaseBase):
     
-    def test_mocaroname(self):
+    def test_div_in_p_using_macro(self):
         dummy, macros = self._compile('<p metal:define-macro="M">Booh</p>')
         engine = DummyEngine(macros)
         program, dummy = self._compile(
-            '<p metal:use-macro="M"><div tal:content="macroname">foo</div></p>')
+            '<p metal:use-macro="M"><div>foo</div></p>')
         interpreter = TALInterpreter(program, {}, engine)
 
         output = interpreter()
-        self.assertEqual(output, '<p><div>M</div></p>')
+        self.assertEqual(output, '<p><div>foo</div></p>')
 
 
 class I18NCornerTestCase(TestCaseBase):
@@ -372,10 +372,15 @@
 def test_suite():
     suite = unittest.makeSuite(I18NErrorsTestCase)
     suite.addTest(unittest.makeSuite(MacroErrorsTestCase))
-    #suite.addTest(unittest.makeSuite(MacroNamesTest))
     suite.addTest(unittest.makeSuite(OutputPresentationTestCase))
     suite.addTest(unittest.makeSuite(ScriptTestCase))
     suite.addTest(unittest.makeSuite(I18NCornerTestCase))
+
+    # XXX: Deactivated test, since we have not found a solution for this and
+    # it is a deep and undocumented HTML parser issue.
+    # Fred is looking into this.
+    #suite.addTest(unittest.makeSuite(MacroFunkyErrorTest))
+
     return suite
 
 if __name__ == "__main__":




More information about the Zope3-Checkins mailing list