1. Ian Lewis
  2. kay

Commits

Takashi Matsuo  committed 9a8c61c

Removed gettext stuff from test.

  • Participants
  • Parent commits 182fa6a
  • Branches default

Comments (0)

Files changed (1)

File kay/tests/formtest.py

View file
 from kay.utils import local
 from kay.utils import forms
 
-def _(v):
-  return v
-
 class GAETestBase(unittest.TestCase):
 
   def get_env(self):
   
 class TestForm(forms.Form):
   csrf_protected = False
-  username = forms.TextField(_("user name"), required=True)
-  password = forms.TextField(_("password"), required=True)
-  password_again = forms.TextField(_("confirm password"), required=True)
-  model_field = forms.ModelField(TestModel, label=_("ModelField Test"),
+  username = forms.TextField("user name", required=True)
+  password = forms.TextField("password", required=True)
+  password_again = forms.TextField("confirm password", required=True)
+  model_field = forms.ModelField(TestModel, label="ModelField Test",
                                  required=True, filter=('is_active =', True),
                                  option_name='data')