pull/5896/head
jacobtoppm 2020-03-03 15:05:56 +00:00 zatwierdzone przez Matt Westcott
rodzic ee0af70545
commit cc430e2bb1
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -425,10 +425,10 @@ class TestFieldPanel(TestCase):
# heading from the bound field label
self.assertEqual(self.end_date_panel.heading, self.end_date_panel.bound_field.label)
# if heading is explicitly provided to constructor, that heading should be taken in
# if heading is explicitly provided to constructor, that heading should be taken in
# preference to the field's label
end_date_panel_with_overridden_heading = (FieldPanel('date_to', classname='full-width', heading="New heading")
.bind_to(model=EventPage, request=self.request))
.bind_to(model=EventPage, request=self.request))
self.assertEqual(end_date_panel_with_overridden_heading.heading, "New heading")