Completed test coverage for django.utils.datastructures.

This commit is contained in:
Marcelo Galigniana 2023-02-13 21:24:37 -03:00 committed by Mariusz Felisiak
parent f608e6a157
commit f9f0092346
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@ class MultiValueDictTests(SimpleTestCase):
self.assertEqual(d.getlist("lastname"), ["Holovaty", "Willison"])
self.assertEqual(list(d.values()), ["Simon", "Developer", [], "Willison"])
d.setlistdefault("lastname", ["Doe"])
self.assertEqual(d.getlist("lastname"), ["Holovaty", "Willison"])
d.setlistdefault("newkey", ["Doe"])
self.assertEqual(d.getlist("newkey"), ["Doe"])
def test_appendlist(self):
d = MultiValueDict()
d.appendlist("name", "Adrian")