diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index bcde7a868c..aa93038eea 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -1963,7 +1963,7 @@ class ModelMultipleChoiceFieldTests(TestCase): ) article.categories.add(self.c2, self.c3) form = ArticleCategoriesForm(instance=article) - self.assertEqual(form['categories'].value(), [self.c2.slug, self.c3.slug]) + self.assertCountEqual(form['categories'].value(), [self.c2.slug, self.c3.slug]) class ModelOneToOneFieldTests(TestCase):