diff options
Diffstat (limited to 'tests/regressiontests/utils/datastructures.py')
| -rw-r--r-- | tests/regressiontests/utils/datastructures.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py index 3d01ab8b6f..1f8b59ec17 100644 --- a/tests/regressiontests/utils/datastructures.py +++ b/tests/regressiontests/utils/datastructures.py @@ -212,6 +212,12 @@ class MultiValueDictTests(DatastructuresTestCase): self.assertEqual(list(d.itervalues()), ['Developer', 'Simon', 'Willison']) + def test_appendlist(self): + d = MultiValueDict() + d.appendlist('name', 'Adrian') + d.appendlist('name', 'Simon') + self.assertEqual(d.getlist('name'), ['Adrian', 'Simon']) + def test_copy(self): for copy_func in [copy, lambda d: d.copy()]: d1 = MultiValueDict({ |
