[Zope3-checkins]
SVN: Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py
add some more tests
Godefroid Chapelle
gotcha at bubblenet.be
Sat Sep 24 18:04:08 EDT 2005
Log message for revision 38605:
add some more tests
Changed:
U Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py
-=-
Modified: Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py
===================================================================
--- Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py 2005-09-24 21:57:54 UTC (rev 38604)
+++ Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py 2005-09-24 22:04:08 UTC (rev 38605)
@@ -447,6 +447,17 @@
' i18n:domain="lower"'
' tal:content="string:ToLower" />')
self._check(program, '<div>tolower</div>\n')
+ program, macros = self._compile(
+ '<div i18n:translate=""'
+ ' tal:define="msgid string:ToUpper"'
+ ' tal:content="msgid" />')
+ self._check(program, '<div>TOUPPER</div>\n')
+ program, macros = self._compile(
+ '<div i18n:translate=""'
+ ' i18n:domain="lower"'
+ ' tal:define="msgid string:ToLower"'
+ ' tal:content="msgid" />')
+ self._check(program, '<div>tolower</div>\n')
def test_unused_explicit_domain(self):
#a_very_explicit_domain_setup_by_template_developer_that_wont_be_taken_into_account_by_the_ZPT_engine
More information about the Zope3-Checkins
mailing list