[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n/Views/Browser/tests - testTranslate.py:1.2

Barry Warsaw barry@wooz.org
Wed, 12 Jun 2002 16:59:35 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/I18n/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv12450/lib/python/Zope/I18n/Views/Browser/tests

Modified Files:
	testTranslate.py 
Log Message:
testGetMessages(): Simplify via a list comprehension.


=== Zope3/lib/python/Zope/I18n/Views/Browser/tests/testTranslate.py 1.1 => 1.2 ===
 
     def testGetMessages(self):
-        ids = map(lambda m: m[0], self._view.getMessages())
+        ids = [m[0] for m in self._view.getMessages()]
         ids.sort()
         self.assertEqual(ids, ['greeting', 'short_greeting'])