mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +00:00
Advanced deprecation warnings for 1.8.
This commit is contained in:
parent
74b3467646
commit
232181d1c5
9 changed files with 24 additions and 22 deletions
|
|
@ -6,13 +6,13 @@ import copy
|
|||
import pickle
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import IgnorePendingDeprecationWarningsMixin
|
||||
from django.test.utils import IgnoreDeprecationWarningsMixin
|
||||
from django.utils.datastructures import (DictWrapper, ImmutableList,
|
||||
MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict)
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class SortedDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
||||
class SortedDictTests(IgnoreDeprecationWarningsMixin, SimpleTestCase):
|
||||
def setUp(self):
|
||||
super(SortedDictTests, self).setUp()
|
||||
self.d1 = SortedDict()
|
||||
|
|
@ -136,7 +136,7 @@ class SortedDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
|||
self.assertEqual(list(reversed(self.d2)), [7, 0, 9, 1])
|
||||
|
||||
|
||||
class MergeDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
||||
class MergeDictTests(IgnoreDeprecationWarningsMixin, SimpleTestCase):
|
||||
|
||||
def test_simple_mergedict(self):
|
||||
d1 = {'chris': 'cool', 'camri': 'cute', 'cotton': 'adorable',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue