[Zope-Checkins] CVS: Zope/lib/python/TAL/tests - test_htmltalparser.py:1.33
Godefroid Chapelle
gotcha@swing.be
Tue, 22 Jul 2003 09:29:22 -0400
Update of /cvs-repository/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv30718/tests
Modified Files:
test_htmltalparser.py
Log Message:
deny attributes being both part of tal:attributes
and having a messageid in i18n:attributes
=== Zope/lib/python/TAL/tests/test_htmltalparser.py 1.32 => 1.33 ===
--- Zope/lib/python/TAL/tests/test_htmltalparser.py:1.32 Fri Apr 25 14:06:56 2003
+++ Zope/lib/python/TAL/tests/test_htmltalparser.py Tue Jul 22 09:28:46 2003
@@ -511,6 +511,9 @@
('bar', None, 'insert', None, 1, None)])),
('endScope', ()),
])
+ self._should_error('''<input name="Delete"
+ tal:attributes="name string:delete_button"
+ i18n:attributes="name message-id">''')
def test_i18n_name_bad_name(self):
self._should_error("<span i18n:name='not a valid name' />")