[Zope3-checkins]
SVN: Zope3/branches/philikon-messages-as-rocks/src/zope/i18nmessageid/messages.txt
Fix doctest so that it passes;
add another test where default_, domain, and
Philipp von Weitershausen
philikon at philikon.de
Wed Sep 22 14:37:27 EDT 2004
Log message for revision 27644:
Fix doctest so that it passes; add another test where default_, domain, and
mapping are not passed in the constructor so that the tertiary operator usage
in Message_reduce is exercised.
Changed:
U Zope3/branches/philikon-messages-as-rocks/src/zope/i18nmessageid/messages.txt
-=-
Modified: Zope3/branches/philikon-messages-as-rocks/src/zope/i18nmessageid/messages.txt
===================================================================
--- Zope3/branches/philikon-messages-as-rocks/src/zope/i18nmessageid/messages.txt 2004-09-21 18:48:27 UTC (rev 27643)
+++ Zope3/branches/philikon-messages-as-rocks/src/zope/i18nmessageid/messages.txt 2004-09-22 18:37:25 UTC (rev 27644)
@@ -86,10 +86,19 @@
Last but not least, messages are reduceable for pickling:
>>> callable, args = new_robot.__reduce__()
+ >>> callable is Message
+ True
>>> args
- (u'robot-message', 'futurama', u'${name} is a robot', {u'name': u'Bender'})
+ (u'robot-message', 'futurama', u'${name} is a robot.', {u'name': u'Bender'})
+ >>> fembot = Message(u'fembot')
+ >>> callable, args = fembot.__reduce__()
+ >>> callable is Message
+ True
+ >>> args
+ (u'fembot', None, None, None)
+
Message IDs and backward compatability
--------------------------------------
More information about the Zope3-Checkins
mailing list