summaryrefslogtreecommitdiff
path: root/tests/model_forms
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 09:44:45 +0200
commit17d75472f0d74792ae3195b01e23233cc84d4d96 (patch)
tree472ac85fdee5852aacb655a53cdaaf350def25aa /tests/model_forms
parentd8039dfb0a228eb905fc405c4669b55e76d9ba53 (diff)
[1.11.x] Fixed nondeterministic ordering test failure in model_forms.
Backport of 2767ef3ca7 from master
Diffstat (limited to 'tests/model_forms')
-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 49ed9f03dd..2ff4435385 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -1971,7 +1971,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):