From b75d06e18938015ad6eafe53e15aa2d7a2f92f02 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Fri, 5 Mar 2010 16:11:21 -0500 Subject: localize doc strings A number of doc strings were not localized, wrap them in _(). Some messages were not localized, wrap them in _() Fix a couple of failing tests: The method name in RPC should not be unicode. The doc attribute must use the .msg attribute for comparison. Also clean up imports of _() The import should come from ipalib or ipalib.text, not ugettext from request. --- tests/test_ipalib/test_rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_ipalib/test_rpc.py') diff --git a/tests/test_ipalib/test_rpc.py b/tests/test_ipalib/test_rpc.py index d5dd38cd..83092b5d 100644 --- a/tests/test_ipalib/test_rpc.py +++ b/tests/test_ipalib/test_rpc.py @@ -128,7 +128,7 @@ def test_xml_dumps(): # Test serializing an RPC request: data = f(params, 'the_method') (p, m) = loads(data) - assert_equal(m, u'the_method') + assert_equal(m, 'the_method') assert type(p) is tuple assert rpc.xml_unwrap(p) == params @@ -159,7 +159,7 @@ def test_xml_loads(): # Test un-serializing an RPC request: data = dumps(wrapped, 'the_method', allow_none=True) (p, m) = f(data) - assert_equal(m, u'the_method') + assert_equal(m, 'the_method') assert_equal(p, params) # Test un-serializing an RPC response: -- cgit