mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
[1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. Backport of [14803].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -142,7 +142,7 @@ class AdminForeignKeyWidgetChangeList(DjangoTestCase):
|
||||
|
||||
def test_changelist_foreignkey(self):
|
||||
response = self.client.get('%s/admin_widgets/car/' % self.admin_root)
|
||||
self.failUnless('%s/auth/user/add/' % self.admin_root in response.content)
|
||||
self.assertTrue('%s/auth/user/add/' % self.admin_root in response.content)
|
||||
|
||||
|
||||
class AdminForeignKeyRawIdWidget(DjangoTestCase):
|
||||
|
||||
Reference in New Issue
Block a user