- Timestamp:
- 08/24/08 23:00:15 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/datastructures/tests.py
r8399 r8531 2 2 # Tests for stuff in django.utils.datastructures. 3 3 4 >>> import pickle 4 5 >>> from django.utils.datastructures import * 5 6 … … 104 105 {1: 'one', 0: 'zero', 2: 'two'} 105 106 107 >>> pickle.loads(pickle.dumps(d, 2)) 108 {1: 'one', 0: 'zero', 2: 'two'} 109 106 110 >>> d.clear() 107 111 >>> d … … 110 114 [] 111 115 112 ### DotExpandedDict ########################################################## ##116 ### DotExpandedDict ########################################################## 113 117 114 118 >>> d = DotExpandedDict({'person.1.firstname': ['Simon'], 'person.1.lastname': ['Willison'], 'person.2.firstname': ['Adrian'], 'person.2.lastname': ['Holovaty']}) … … 120 124 ['Adrian'] 121 125 122 ### ImmutableList ############################################################ ####126 ### ImmutableList ############################################################ 123 127 >>> d = ImmutableList(range(10)) 124 128 >>> d.sort()
