mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6770c36262
commit
5bc0ec4ec4
30 changed files with 386 additions and 379 deletions
|
|
@ -1,12 +1,10 @@
|
|||
from django.test import TestCase
|
||||
|
||||
from django.contrib.admin.helpers import InlineAdminForm
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.test import TestCase
|
||||
|
||||
# local test models
|
||||
from models import Holder, Inner, InnerInline
|
||||
from models import Holder2, Inner2, Holder3, Inner3
|
||||
from models import Person, OutfitItem, Fashionista
|
||||
from models import Teacher, Parent, Child
|
||||
from models import (Holder, Inner, InnerInline, Holder2, Inner2, Holder3,
|
||||
Inner3, Person, OutfitItem, Fashionista, Teacher, Parent, Child)
|
||||
|
||||
|
||||
class TestInline(TestCase):
|
||||
|
|
@ -19,7 +17,7 @@ class TestInline(TestCase):
|
|||
self.change_url = '/test_admin/admin/admin_inlines/holder/%i/' % holder.id
|
||||
|
||||
result = self.client.login(username='super', password='secret')
|
||||
self.failUnlessEqual(result, True)
|
||||
self.assertEqual(result, True)
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
|
@ -75,7 +73,7 @@ class TestInlineMedia(TestCase):
|
|||
def setUp(self):
|
||||
|
||||
result = self.client.login(username='super', password='secret')
|
||||
self.failUnlessEqual(result, True)
|
||||
self.assertEqual(result, True)
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue