mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +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
|
|
@ -12,6 +12,7 @@ from django import conf, bin, get_version
|
|||
from django.conf import settings
|
||||
from django.utils import unittest
|
||||
|
||||
|
||||
class AdminScriptTestCase(unittest.TestCase):
|
||||
def write_settings(self, filename, apps=None, is_dir=False, sdict=None):
|
||||
test_dir = os.path.dirname(os.path.dirname(__file__))
|
||||
|
|
@ -156,7 +157,7 @@ class AdminScriptTestCase(unittest.TestCase):
|
|||
self.assertEquals(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
|
||||
def assertOutput(self, stream, msg):
|
||||
"Utility assertion: assert that the given message exists in the output"
|
||||
self.failUnless(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
|
||||
self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
|
||||
|
||||
##########################################################################
|
||||
# DJANGO ADMIN TESTS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue