python3 fix

This commit is contained in:
Matt Westcott 2015-01-30 19:59:25 +00:00
parent b2dfc84b61
commit 6252bd8dc9

View file

@ -420,7 +420,7 @@ class TestInlinePanel(TestCase):
EventPageForm = SpeakerInlinePanel.get_form_class(EventPage)
# SpeakerInlinePanel should instruct the form class to include a 'speakers' formset
self.assertEqual(['speakers'], EventPageForm.formsets.keys())
self.assertEqual(['speakers'], list(EventPageForm.formsets.keys()))
event_page = EventPage.objects.get(slug='christmas')
@ -457,7 +457,7 @@ class TestInlinePanel(TestCase):
EventPageForm = SpeakerInlinePanel.get_form_class(EventPage)
# SpeakerInlinePanel should instruct the form class to include a 'speakers' formset
self.assertEqual(['speakers'], EventPageForm.formsets.keys())
self.assertEqual(['speakers'], list(EventPageForm.formsets.keys()))
event_page = EventPage.objects.get(slug='christmas')