[Zope3-checkins]
SVN: Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py
add a test
Godefroid Chapelle
gotcha at bubblenet.be
Sat Sep 24 05:48:56 EDT 2005
Log message for revision 38579:
add a test
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 09:34:34 UTC (rev 38578)
+++ Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py 2005-09-24 09:48:56 UTC (rev 38579)
@@ -159,6 +159,16 @@
'</div>')
self._check(program, '<div>FOOVALUE</div>\n')
+ def test_unused_explicit_domain(self):
+ # constructs a msgid and set it up in the namespace
+ self.engine.setLocal('baz',
+ self.factory('BaZvAlUe', 'default', {}))
+ program, macros = self._compile(
+ '<div i18n:translate=""'
+ ' i18n:domain="a_very_explicit_domain_setup_by_template_developer_that_wont_be_taken_into_account_by_the_ZPT_engine"'
+ ' tal:content="baz" />')
+ self._check(program, '<div>BAZVALUE</div>\n')
+
def test_pythonexpr_replace_with_messageid_and_i18nname(self):
program, macros = self._compile(
'<div i18n:translate="" >'
More information about the Zope3-Checkins
mailing list