mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Updated test assertions that have been deprecated by the move to unittest2. In summary, this means:
assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -367,7 +367,7 @@ class ModelInheritanceTest(TestCase):
|
||||
# from an ABC even when there are one or more intermediate
|
||||
# abstract models in the inheritance chain, for consistency with
|
||||
# verbose_name.
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
InternalCertificationAudit._meta.verbose_name_plural,
|
||||
u'Audits'
|
||||
)
|
||||
@@ -394,12 +394,12 @@ class ModelInheritanceTest(TestCase):
|
||||
# Regression test for #13987: Primary key is incorrectly determined
|
||||
# when more than one model has a concrete->abstract->concrete
|
||||
# inheritance hierarchy.
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
len([field for field in BusStation._meta.local_fields
|
||||
if field.primary_key]),
|
||||
1
|
||||
)
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
len([field for field in TrainStation._meta.local_fields
|
||||
if field.primary_key]),
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user