Avoid relying on permission_types ordering in test_group_edit_loads_with_page_permissions_shown

pull/2561/head
Matt Westcott 2016-05-03 20:49:02 +01:00
rodzic 58f747b955
commit ab70c3c885
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -566,8 +566,8 @@ class TestGroupEditView(TestCase, WagtailTestUtils):
self.root_page.pk
)
self.assertEqual(
page_permissions_formset.forms[0]['permission_types'].value(),
['add', 'edit']
set(page_permissions_formset.forms[0]['permission_types'].value()),
set(['add', 'edit'])
)
# add edit permission on home