[Zope3-checkins] SVN: Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py Fixed message id test factories

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Jun 30 09:41:12 EDT 2005


Log message for revision 30958:
  Fixed message id test factories
  

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-06-30 13:31:46 UTC (rev 30957)
+++ Zope3/trunk/src/zope/tal/tests/test_talinterpreter.py	2005-06-30 13:41:12 UTC (rev 30958)
@@ -405,15 +405,15 @@
 
 class I18NCornerTestCaseMessageID(I18NCornerTestCaseBase):
 
-    def factory(self, msgid, default, mapping={}):
-        m = MessageID(msgid, default)
+    def factory(self, msgid, default=None, mapping={}):
+        m = MessageID(msgid, default=default)
         m.mapping = mapping
         return m
 
 class I18NCornerTestCaseMessage(I18NCornerTestCaseBase):
 
-    def factory(self, msgid, default, mapping={}):
-        return Message(msgid, default, mapping=mapping)
+    def factory(self, msgid, default=None, mapping={}):
+        return Message(msgid, default=default, mapping=mapping)
 
 class ScriptTestCase(TestCaseBase):
 



More information about the Zope3-Checkins mailing list