From 9c19aff7c7561e3a82978a272ecdaad40dda5c00 Mon Sep 17 00:00:00 2001 From: django-bot Date: Thu, 3 Feb 2022 20:24:19 +0100 Subject: Refs #33476 -- Reformatted code with Black. --- .../widget_tests/test_multiplehiddeninput.py | 44 ++++++++++++++++------ 1 file changed, 32 insertions(+), 12 deletions(-) (limited to 'tests/forms_tests/widget_tests/test_multiplehiddeninput.py') diff --git a/tests/forms_tests/widget_tests/test_multiplehiddeninput.py b/tests/forms_tests/widget_tests/test_multiplehiddeninput.py index 37d54174ee..d0ad188929 100644 --- a/tests/forms_tests/widget_tests/test_multiplehiddeninput.py +++ b/tests/forms_tests/widget_tests/test_multiplehiddeninput.py @@ -8,13 +8,17 @@ class MultipleHiddenInputTest(WidgetTest): def test_render_single(self): self.check_html( - self.widget, 'email', ['test@example.com'], + self.widget, + "email", + ["test@example.com"], html='', ) def test_render_multiple(self): self.check_html( - self.widget, 'email', ['test@example.com', 'foo@example.com'], + self.widget, + "email", + ["test@example.com", "foo@example.com"], html=( '\n' '' @@ -23,13 +27,19 @@ class MultipleHiddenInputTest(WidgetTest): def test_render_attrs(self): self.check_html( - self.widget, 'email', ['test@example.com'], attrs={'class': 'fun'}, + self.widget, + "email", + ["test@example.com"], + attrs={"class": "fun"}, html='', ) def test_render_attrs_multiple(self): self.check_html( - self.widget, 'email', ['test@example.com', 'foo@example.com'], attrs={'class': 'fun'}, + self.widget, + "email", + ["test@example.com", "foo@example.com"], + attrs={"class": "fun"}, html=( '\n' '' @@ -37,36 +47,46 @@ class MultipleHiddenInputTest(WidgetTest): ) def test_render_attrs_constructor(self): - widget = MultipleHiddenInput(attrs={'class': 'fun'}) - self.check_html(widget, 'email', [], '') + widget = MultipleHiddenInput(attrs={"class": "fun"}) + self.check_html(widget, "email", [], "") self.check_html( - widget, 'email', ['foo@example.com'], + widget, + "email", + ["foo@example.com"], html='', ) self.check_html( - widget, 'email', ['foo@example.com', 'test@example.com'], + widget, + "email", + ["foo@example.com", "test@example.com"], html=( '\n' '' ), ) self.check_html( - widget, 'email', ['foo@example.com'], attrs={'class': 'special'}, + widget, + "email", + ["foo@example.com"], + attrs={"class": "special"}, html='', ) def test_render_empty(self): - self.check_html(self.widget, 'email', [], '') + self.check_html(self.widget, "email", [], "") def test_render_none(self): - self.check_html(self.widget, 'email', None, '') + self.check_html(self.widget, "email", None, "") def test_render_increment_id(self): """ Each input should get a separate ID. """ self.check_html( - self.widget, 'letters', ['a', 'b', 'c'], attrs={'id': 'hideme'}, + self.widget, + "letters", + ["a", "b", "c"], + attrs={"id": "hideme"}, html=( '\n' '\n' -- cgit v1.3