diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-03-16 16:14:51 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-16 11:14:51 -0400 |
| commit | 2767ef3ca7fcd5608327a246c74b1dfb11ea0413 (patch) | |
| tree | b0c269c5741e08f9c5def605821a1f80ad716968 | |
| parent | 1bf5e79394c43af29d2c67c54b32dca0f0e42ca2 (diff) | |
Fixed nondeterministic ordering test failure in model_forms.
| -rw-r--r-- | tests/model_forms/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
