From 64bc6459b818f899d3e1391f3dc676a831f303cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20K=C3=B6lker?= Date: Tue, 7 Feb 2012 12:30:13 -0600 Subject: [PATCH] add _ function in tests Change-Id: I7e95f062f5eec57a76bbea66feaead17d3a18c6f --- melange/client/tests/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/melange/client/tests/__init__.py b/melange/client/tests/__init__.py index 685b656..2b32d7a 100644 --- a/melange/client/tests/__init__.py +++ b/melange/client/tests/__init__.py @@ -16,9 +16,14 @@ # License for the specific language governing permissions and limitations # under the License. + import unittest -# TODO(jkoelker) Convert this to mock +# See http://code.google.com/p/python-nose/issues/detail?id=373 +# The code below enables nosetests to work with i18n _() blocks +import __builtin__ +setattr(__builtin__, '_', lambda x: x) + import mox