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

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Mar 23 11:29:20 EST 2004


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

Modified Files:
	test_talinterpreter.py 
Log Message:
Added deactivated test, so me and Fred can look at a test case of what we 
want to do.


=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.9 => 1.10 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.9	Mon Mar  8 18:33:58 2004
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Tue Mar 23 11:29:20 2004
@@ -61,6 +61,19 @@
         self.macro[0] = ("version", "duh")
 
 
+class MacroNamesTest(TestCaseBase):
+    
+    def test_mocaroname(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>')
+        interpreter = TALInterpreter(program, {}, engine)
+
+        output = interpreter()
+        self.assertEqual(output, '<p><div>M</div></p>')
+
+
 class I18NCornerTestCase(TestCaseBase):
 
     def setUp(self):
@@ -359,6 +372,7 @@
 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))




More information about the Zope3-Checkins mailing list