diff options
| author | Illia Volochii <illia.volochii@gmail.com> | 2016-12-27 16:42:17 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-27 09:42:17 -0500 |
| commit | 4a51ba228b2c416a115aee3bc034683eb02482c3 (patch) | |
| tree | 5340b8b7a09a9ad8f92907fd43a5ba6664ed675d /tests/forms_tests | |
| parent | 3e5c5e6754648590e87725b66d11d283079728e6 (diff) | |
Fixed #27642 -- Made forms.utils.flatatt() omit 'None' values from attrs.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/forms_tests/tests/test_utils.py b/tests/forms_tests/tests/test_utils.py index a6a2d81b9f..f95c956322 100644 --- a/tests/forms_tests/tests/test_utils.py +++ b/tests/forms_tests/tests/test_utils.py @@ -34,6 +34,7 @@ class FormsUtilsTestCase(SimpleTestCase): flatatt({'class': "news", 'title': "Read this", 'required': False}), ' class="news" title="Read this"' ) + self.assertEqual(flatatt({'class': None}), '') self.assertEqual(flatatt({}), '') def test_flatatt_no_side_effects(self): |
