[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/i18n/tests/test_translationdomain.py
Fix test that must have slipped my attention: messages are
immutable,
Philipp von Weitershausen
philikon at philikon.de
Tue Apr 4 03:32:38 EDT 2006
Log message for revision 66367:
Fix test that must have slipped my attention: messages are immutable,
hence pass the mapping to the constructor
Changed:
U Zope3/branches/jim-adapter/src/zope/i18n/tests/test_translationdomain.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/i18n/tests/test_translationdomain.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/i18n/tests/test_translationdomain.py 2006-04-04 07:28:51 UTC (rev 66366)
+++ Zope3/branches/jim-adapter/src/zope/i18n/tests/test_translationdomain.py 2006-04-04 07:32:37 UTC (rev 66367)
@@ -85,8 +85,8 @@
msgid = factory(u'short_greeting', 'default')
self.assertEqual(translate(msgid, target_language='en'), u'Hello!')
# MessageID attributes override arguments
- msgid = factory('43-not-there', 'this ${that} the other')
- msgid.mapping["that"] = "THAT"
+ msgid = factory('43-not-there', 'this ${that} the other',
+ mapping={'that': 'THAT'})
self.assertEqual(
translate(msgid, target_language='en', default="default",
mapping={"that": "that"}), "this THAT the other")
More information about the Zope3-Checkins
mailing list