mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Remove DotExpandedDict, which was undocumented and unused.
This commit is contained in:
parent
0f57935bcd
commit
c57abd3c29
3 changed files with 3 additions and 49 deletions
|
@ -6,8 +6,8 @@ import copy
|
|||
import pickle
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.utils.datastructures import (DictWrapper, DotExpandedDict,
|
||||
ImmutableList, MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict)
|
||||
from django.utils.datastructures import (DictWrapper, ImmutableList,
|
||||
MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict)
|
||||
|
||||
|
||||
class SortedDictTests(SimpleTestCase):
|
||||
|
@ -251,20 +251,6 @@ class MultiValueDictTests(SimpleTestCase):
|
|||
self.assertEqual({}, MultiValueDict().dict())
|
||||
|
||||
|
||||
class DotExpandedDictTests(SimpleTestCase):
|
||||
|
||||
def test_dotexpandeddict(self):
|
||||
|
||||
d = DotExpandedDict({'person.1.firstname': ['Simon'],
|
||||
'person.1.lastname': ['Willison'],
|
||||
'person.2.firstname': ['Adrian'],
|
||||
'person.2.lastname': ['Holovaty']})
|
||||
|
||||
self.assertEqual(d['person']['1']['lastname'], ['Willison'])
|
||||
self.assertEqual(d['person']['2']['lastname'], ['Holovaty'])
|
||||
self.assertEqual(d['person']['2']['firstname'], ['Adrian'])
|
||||
|
||||
|
||||
class ImmutableListTests(SimpleTestCase):
|
||||
|
||||
def test_sort(self):
|
||||
|
|
|
@ -16,7 +16,7 @@ from .decorators import DecoratorFromMiddlewareTests
|
|||
from .functional import FunctionalTestCase
|
||||
from .timesince import TimesinceTests
|
||||
from .datastructures import (MultiValueDictTests, SortedDictTests,
|
||||
DictWrapperTests, ImmutableListTests, DotExpandedDictTests, MergeDictTests)
|
||||
DictWrapperTests, ImmutableListTests, MergeDictTests)
|
||||
from .tzinfo import TzinfoTests
|
||||
from .datetime_safe import DatetimeTests
|
||||
from .baseconv import TestBaseConv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue