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

Jim Fulton jim at zope.com
Sun Sep 21 13:33:28 EDT 2003


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

Modified Files:
	test_translationservice.py 
Log Message:
No-longer use context wrappers.

Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/services/translation/tests/test_translationservice.py 1.12 => 1.13 ===
--- 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	Sun Sep 21 13:33:27 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