Ticket #1141: unit_tests.r1799.patch
File unit_tests.r1799.patch, 2.0 KB (added by , 19 years ago) |
---|
-
django/utils/datastructures.py
74 74 try: 75 75 list_ = dict.__getitem__(self, key) 76 76 except KeyError: 77 raise MultiValueDictKeyError, "Key %r not found in MultiValueDict%r" % (key, self)77 raise MultiValueDictKeyError, "Key %r not found in %r" % (key, self) 78 78 try: 79 79 return list_[-1] 80 80 except IndexError: -
django/core/formfields.py
98 98 must happen after validation because html2python functions aren't 99 99 expected to deal with invalid input. 100 100 """ 101 print "converting for ", self, self.fields102 101 for field in self.fields: 103 102 field.convert_post_data(new_data) 104 103 -
tests/othertests/httpwrappers.py
8 8 >>> q['foo'] 9 9 Traceback (most recent call last): 10 10 ... 11 MultiValueDictKeyError: "Key 'foo' not found in MultiValueDict {}"11 MultiValueDictKeyError: "Key 'foo' not found in <MultiValueDict: {}>" 12 12 13 13 >>> q['something'] = 'bar' 14 14 Traceback (most recent call last): … … 86 86 >>> q['foo'] 87 87 Traceback (most recent call last): 88 88 ... 89 MultiValueDictKeyError: "Key 'foo' not found in MultiValueDict {}"89 MultiValueDictKeyError: "Key 'foo' not found in <MultiValueDict: {}>" 90 90 91 91 >>> q['name'] = 'john' 92 92 … … 186 186 >>> q['bar'] 187 187 Traceback (most recent call last): 188 188 ... 189 MultiValueDictKeyError: "Key 'bar' not found in MultiValueDict {'foo': ['bar']}"189 MultiValueDictKeyError: "Key 'bar' not found in <MultiValueDict: {'foo': ['bar']}>" 190 190 191 191 >>> q['something'] = 'bar' 192 192 Traceback (most recent call last):