From 3d89f26b0890325870e35142e59f800f5ee68de2 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 28 Nov 2006 23:14:18 +0000 Subject: [PATCH] newforms: Changed Form unit tests to use f.clean_data rather than f.clean(), because the latter is a validation hook, not a way to get the clean data git-svn-id: http://code.djangoproject.com/svn/django/trunk@4129 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index 8f9f0ec24d..3e209da923 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -1148,7 +1148,7 @@ True u'' >>> p.errors.as_text() u'' ->>> p.clean() +>>> p.clean_data {'first_name': u'John', 'last_name': u'Lennon', 'birthday': datetime.date(1940, 10, 9)} >>> print p['first_name'] @@ -1231,8 +1231,8 @@ u'