add _ function in tests

Change-Id: I7e95f062f5eec57a76bbea66feaead17d3a18c6f
This commit is contained in:
Jason Kölker 2012-02-07 12:30:13 -06:00
parent 029eddc0d8
commit 64bc6459b8
1 changed files with 6 additions and 1 deletions

View File

@ -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