diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-31 06:30:07 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-31 06:30:07 +0000 |
| commit | 184ea1c91f06d31d0e1d34b2c27c08b01d2d5033 (patch) | |
| tree | 620b15d0030d4238002ea5937cd9a59d3521c21c /tests/regressiontests | |
| parent | 9ae873fcd83221a17d41f31f2ac32e37f439ae7b (diff) | |
Fixed #8847, #10370: added some missing methods to MultiValueDict after [8399]. Thanks, James Turk and rfk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/datastructures/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/datastructures/tests.py b/tests/regressiontests/datastructures/tests.py index 9404a0a792..e658f3302e 100644 --- a/tests/regressiontests/datastructures/tests.py +++ b/tests/regressiontests/datastructures/tests.py @@ -45,6 +45,8 @@ MergeDict can merge MultiValueDicts ['Adrian', 'Simon'] >>> list(d.iteritems()) [('position', 'Developer'), ('name', 'Simon')] +>>> list(d.iterlists()) +[('position', ['Developer']), ('name', ['Adrian', 'Simon'])] >>> d['lastname'] Traceback (most recent call last): ... @@ -58,6 +60,10 @@ MultiValueDictKeyError: "Key 'lastname' not found in <MultiValueDict: {'position >>> d.setlist('lastname', ['Holovaty', 'Willison']) >>> d.getlist('lastname') ['Holovaty', 'Willison'] +>>> d.values() +['Developer', 'Simon', 'Willison'] +>>> list(d.itervalues()) +['Developer', 'Simon', 'Willison'] ### SortedDict ################################################################# |
