diff options
Diffstat (limited to 'askbot/tests/form_tests.py')
-rw-r--r-- | askbot/tests/form_tests.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/askbot/tests/form_tests.py b/askbot/tests/form_tests.py index be88cf39..90f4f4f2 100644 --- a/askbot/tests/form_tests.py +++ b/askbot/tests/form_tests.py @@ -374,11 +374,12 @@ class AskWidgetFormTests(AskbotTestCase): self.bad_data = {'title': ''} def test_valid_input(self): - form_object = self.form(self.good_data) + form_object = self.form(include_text=False, data=self.good_data) + print form_object.errors self.assertTrue(form_object.is_valid()) - form_object = self.form(self.good_data_anon) + form_object = self.form(include_text=False, data=self.good_data_anon) self.assertTrue(form_object.is_valid()) def test_invalid_input(self): - form_object = self.form(self.bad_data) + form_object = self.form(False, data=self.bad_data) self.assertFalse(form_object.is_valid()) |