summaryrefslogtreecommitdiff
path: root/tests/foreign_object
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-03-17 07:51:48 -0400
committerGitHub <noreply@github.com>2017-03-17 07:51:48 -0400
commit6b4f018b2b3478d2a4a441ed52d43f6268ac89f3 (patch)
tree21a1573a6d8a1e7ee8554adc318174ffda0bf8bd /tests/foreign_object
parente32265de1a68361ea078f49877ccb0f742508728 (diff)
downloaddjango-6b4f018b2b3478d2a4a441ed52d43f6268ac89f3.tar.gz
Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
Diffstat (limited to 'tests/foreign_object')
-rw-r--r--tests/foreign_object/test_empty_join.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/foreign_object/test_empty_join.py b/tests/foreign_object/test_empty_join.py
index 5313699122..1fc6c450d7 100644
--- a/tests/foreign_object/test_empty_join.py
+++ b/tests/foreign_object/test_empty_join.py
@@ -21,7 +21,7 @@ class RestrictedConditionsTests(TestCase):
use any joining columns, as long as an extra restriction is supplied.
"""
a = SlugPage.objects.get(slug='a')
- self.assertListEqual(
+ self.assertEqual(
[p.slug for p in SlugPage.objects.filter(ascendants=a)],
['a', 'a/a', 'a/b', 'a/b/a'],
)
@@ -31,11 +31,11 @@ class RestrictedConditionsTests(TestCase):
)
aba = SlugPage.objects.get(slug='a/b/a')
- self.assertListEqual(
+ self.assertEqual(
[p.slug for p in SlugPage.objects.filter(descendants__in=[aba])],
['a', 'a/b', 'a/b/a'],
)
- self.assertListEqual(
+ self.assertEqual(
[p.slug for p in aba.ascendants.all()],
['a', 'a/b', 'a/b/a'],
)