From 4b7d691908f14c4ff9506b758ca896ab299bf587 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 10 May 2016 16:13:16 +0100 Subject: [PATCH] Avoid relying on non-deterministic ordering on test_group_edit_loads_with_page_permissions_shown --- wagtail/wagtailusers/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/wagtailusers/tests.py b/wagtail/wagtailusers/tests.py index 115093f4d2..c9497009f4 100644 --- a/wagtail/wagtailusers/tests.py +++ b/wagtail/wagtailusers/tests.py @@ -587,8 +587,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']) ) self.assertEqual( page_permissions_formset.forms[1]['page'].value(),