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