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

Barry Warsaw barry@wooz.org
Tue, 18 Jun 2002 14:23:56 -0400


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

Modified Files:
	testIReadTranslationService.py 
Log Message:
testSimpleNoTranslate(): Move this to testGlobalTranslationService.


=== Zope3/lib/python/Zope/I18n/tests/testIReadTranslationService.py 1.1 => 1.2 ===
         eq(interp('This is $${name}.', mapping), 'This is $${name}.')
         
-    def testSimpleNoTranslate(self):
-        translate = self._service.translate
-        raises = self.assertRaises
-        eq = self.assertEqual
-        # Test that we have at least the minimum required arguments
-        raises(TypeError, translate, 'Hello')
-        # Test that a translation in an unsupported language returns the
-        # original message id unchanged.
-        eq(translate('default', 'short_greeting', target_language='es'),
-           'short_greeting')
-        # Same test, but use the context argument instead of target_language
-        context = Environment()
-        eq(translate('default', 'short_greeting', context=context),
-           'short_greeting')
-        # Test that at least one of context or target_language is given
-        raises(TypeError, translate, 'short_greeting', context=None)
-    
     def testSimpleTranslate(self):
         translate = self._service.translate
         eq = self.assertEqual