[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_talgettext.py:1.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Aug 12 16:12:55 EDT 2003


Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv15098/tal/tests

Modified Files:
	test_talgettext.py 
Log Message:
Made talgettext domain aware. The command line version does not support it
yet though. Someone who uses the command line version should test it. Zope
only uses the setup, i.e. the POEngine, which stores catalogs now.

Tests were adjusted.


=== Zope3/src/zope/tal/tests/test_talgettext.py 1.4 => 1.5 ===
--- Zope3/src/zope/tal/tests/test_talgettext.py:1.4	Thu May  1 15:35:49 2003
+++ Zope3/src/zope/tal/tests/test_talgettext.py	Tue Aug 12 15:12:51 2003
@@ -31,10 +31,10 @@
         engine = POEngine()
         engine.file = 'foo.pt'
         for key in test_keys:
-            engine.translate(key)
+            engine.translate(key, 'domain')
 
         for key in test_keys:
-            self.failIf(key not in engine.catalog,
+            self.failIf(key not in engine.catalog['domain'],
                         "POEngine catalog does not properly store message ids"
                         )
 




More information about the Zope3-Checkins mailing list