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

Godefroid Chapelle gotcha@swing.be
Tue, 22 Jul 2003 08:38:05 -0400


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

Modified Files:
	test_talinterpreter.py 
Log Message:
deny attributes being both part of tal:attributes
and having a messageid in i18n:attributes



=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.2 => 1.3 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.2	Wed Dec 25 09:15:31 2002
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Tue Jul 22 08:37:31 2003
@@ -81,6 +81,12 @@
         self._check('<p i18n:id=""></p>',
                     "missing i18n:id value not caught")
 
+    def test_id_with_attributes(self):
+        self._check('''<input name="Delete"
+                       tal:attributes="name string:delete_button"
+                       i18n:attributes="name message-id">''',
+            "expected attribute being both part of tal:attributes" +
+            " and having a msgid in i18n:attributes to be denied")
 
 class OutputPresentationTestCase(TestCaseBase):