Beispiel #1
0
def test_formencode_gettext_nulltranslation():
    prev_gettext = i18n.ugettext
    def nop_gettext(v):
        return v

    i18n.ugettext = nop_gettext
    assert i18n._formencode_gettext('something') == 'something'
    i18n.ugettext = prev_gettext
    return 'OK'
Beispiel #2
0
def test_formencode_gettext_nulltranslation():
    prev_gettext = i18n.ugettext
    def nop_gettext(v):
        return v

    i18n.ugettext = nop_gettext
    assert i18n._formencode_gettext('something') == 'something'
    i18n.ugettext = prev_gettext
    return 'OK'