From c121d0064bb7a7bd1a289ae29ceb2dee314c2d2f Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 5 Jan 2009 01:20:14 -0700 Subject: New Param: Added Param.get_label() method for a way to retrieve translated message at request time --- tests/test_ipalib/test_request.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_ipalib/test_request.py') diff --git a/tests/test_ipalib/test_request.py b/tests/test_ipalib/test_request.py index 819f2755..f26c270a 100644 --- a/tests/test_ipalib/test_request.py +++ b/tests/test_ipalib/test_request.py @@ -24,7 +24,7 @@ Test the `ipalib.request` module. import threading import locale from tests.util import raises, assert_equal -from tests.util import TempDir, DummyUGettext, DummyUNGettext +from tests.util import TempDir, dummy_ugettext, dummy_ungettext from ipalib.constants import OVERRIDE_ERROR from ipalib import request @@ -43,7 +43,7 @@ def test_ugettext(): # Test with dummy context.ugettext: assert not hasattr(context, 'ugettext') - dummy = DummyUGettext() + dummy = dummy_ugettext() context.ugettext = dummy assert f(message) is dummy.translation assert dummy.message is message @@ -69,7 +69,7 @@ def test_ungettext(): # Test singular with dummy context.ungettext assert not hasattr(context, 'ungettext') - dummy = DummyUNGettext() + dummy = dummy_ungettext() context.ungettext = dummy assert f(singular, plural, 1) is dummy.translation_singular assert dummy.singular is singular @@ -80,7 +80,7 @@ def test_ungettext(): # Test plural with dummy context.ungettext assert not hasattr(context, 'ungettext') - dummy = DummyUNGettext() + dummy = dummy_ungettext() context.ungettext = dummy assert f(singular, plural, 2) is dummy.translation_plural assert dummy.singular is singular -- cgit