Fixed failing tests caused by r14667

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Honza Král 2010-11-21 17:48:52 +00:00
parent aee9db9b3e
commit 73cd9b61c9
1 changed files with 2 additions and 2 deletions

View File

@ -196,12 +196,12 @@ class FormfieldCallbackTests(TestCase):
def test_inlineformset_factory_default(self): def test_inlineformset_factory_default(self):
Formset = inlineformset_factory(User, UserSite, form=UserSiteForm) Formset = inlineformset_factory(User, UserSite, form=UserSiteForm)
form = Formset({}).forms[0] form = Formset().forms[0]
self.assertTrue(isinstance(form['data'].field.widget, CustomWidget)) self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
def test_modelformset_factory_default(self): def test_modelformset_factory_default(self):
Formset = modelformset_factory(UserSite, form=UserSiteForm) Formset = modelformset_factory(UserSite, form=UserSiteForm)
form = Formset({}).forms[0] form = Formset().forms[0]
self.assertTrue(isinstance(form['data'].field.widget, CustomWidget)) self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
def assertCallbackCalled(self, callback): def assertCallbackCalled(self, callback):