From b3e9da039ddc3661874e815512475268b8a88ded Mon Sep 17 00:00:00 2001 From: Andreas Zeidler Date: Sat, 17 Aug 2013 12:24:56 +0200 Subject: clean up test names --- pyramid/tests/test_i18n.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyramid/tests/test_i18n.py b/pyramid/tests/test_i18n.py index b583d1468..336e51b6a 100644 --- a/pyramid/tests/test_i18n.py +++ b/pyramid/tests/test_i18n.py @@ -238,7 +238,7 @@ class Test_get_localizer(unittest.TestCase): self.assertEqual(result.__class__, Localizer) self.assertEqual(result.locale_name, 'en') - def test_custom_localizer(self): + def test_custom_localizer_for_default_locale(self): from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ILocalizer registry = get_current_registry() @@ -248,7 +248,7 @@ class Test_get_localizer(unittest.TestCase): result = self._callFUT(request) self.assertEqual(result, dummy) - def test_locale_from_registry(self): + def test_custom_localizer_for_custom_locale(self): from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ILocalizer registry = get_current_registry() @@ -259,7 +259,7 @@ class Test_get_localizer(unittest.TestCase): result = self._callFUT(request) self.assertEqual(result, dummy) - def test_locale_from_mo(self): + def test_localizer_from_mo(self): from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ITranslationDirectories from pyramid.i18n import Localizer @@ -275,7 +275,7 @@ class Test_get_localizer(unittest.TestCase): self.assertEqual(result.translate('Approve'), 'Approve') self.assertTrue(hasattr(result, 'pluralize')) - def test_locale_from_mo_bad_mo(self): + def test_localizer_from_mo_bad_mo(self): from pyramid.threadlocal import get_current_registry from pyramid.interfaces import ITranslationDirectories from pyramid.i18n import Localizer -- cgit v1.2.3