summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-03-16 16:14:51 +0100
committerShai Berger <shai@platonix.com>2017-03-17 10:04:48 +0200
commite7c61ff3a6d11e956da167d2456fc61bd0491b67 (patch)
tree390e66895124b496875a671c6e8e22fa5f5861e2
parente0bd66d02474784c00ff4eae59aa0070a05a7214 (diff)
[1.10.x] Fixed nondeterministic ordering test failure in model_forms.
Backport of 2767ef3ca7 from master
-rw-r--r--tests/model_forms/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py
index 2f9b3945a6..9ca329e759 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -1867,7 +1867,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])
+ six.assertCountEqual(self, form['categories'].value(), [self.c2.slug, self.c3.slug])
class ModelOneToOneFieldTests(TestCase):