[Zope3-checkins] CVS: Zope3/src/zope/app/services/translation/tests - test_translationservice.py:1.12.6.1

Jim Fulton jim at zope.com
Fri Sep 12 15:16:07 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/services/translation/tests
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/services/translation/tests

Modified Files:
      Tag: parentgeddon-branch
	test_translationservice.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/services/translation/tests/test_translationservice.py 1.12 => 1.12.6.1 ===
--- Zope3/src/zope/app/services/translation/tests/test_translationservice.py:1.12	Tue Aug 19 20:46:07 2003
+++ Zope3/src/zope/app/services/translation/tests/test_translationservice.py	Fri Sep 12 15:15:36 2003
@@ -256,8 +256,8 @@
         en_catalog.setMessage('greeting', 'Hello $name, how are you?', 0)
         de_catalog.setMessage('greeting', 'Hallo $name, wie geht es Dir?', 0)
 
-        service.setObject('en-default-1', en_catalog)
-        service.setObject('de-default-1', de_catalog)
+        service['en-default-1'] = en_catalog
+        service['de-default-1'] = de_catalog
 
         return service
 
@@ -292,7 +292,7 @@
         ts = TranslationService('default')
         de_catalog = MessageCatalog('de', 'default')
         de_catalog.setMessage('short_greeting', 'Hallo Welt!', 10)
-        ts.setObject('de-default-1', de_catalog)
+        ts['de-default-1'] = de_catalog
         self.trans1 = setup.addService(mgr, Translation, ts)
 
     def tearDown(self):




More information about the Zope3-Checkins mailing list