diff options
author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/one_to_one | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/one_to_one')
-rw-r--r-- | tests/one_to_one/tests.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py index 3f424b47b8..1bbf85c193 100644 --- a/tests/one_to_one/tests.py +++ b/tests/one_to_one/tests.py @@ -165,10 +165,8 @@ class OneToOneTests(TestCase): def test_create_models_m2m(self): """ - Regression test for #1064 and #1506 - - Check that we create models via the m2m relation if the remote model - has a OneToOneField. + Modles are created via the m2m relation if the remote model has a + OneToOneField (#1064, #1506). """ f = Favorites(name='Fred') f.save() @@ -180,9 +178,7 @@ class OneToOneTests(TestCase): def test_reverse_object_cache(self): """ - Regression test for #7173 - - Check that the name of the cache for the reverse object is correct. + The name of the cache for the reverse object is correct (#7173). """ self.assertEqual(self.p1.restaurant, self.r1) self.assertEqual(self.p1.bar, self.b1) @@ -516,11 +512,11 @@ class OneToOneTests(TestCase): def test_rel_pk_subquery(self): r = Restaurant.objects.first() q1 = Restaurant.objects.filter(place_id=r.pk) - # Test that subquery using primary key and a query against the + # Subquery using primary key and a query against the # same model works correctly. q2 = Restaurant.objects.filter(place_id__in=q1) self.assertSequenceEqual(q2, [r]) - # Test that subquery using 'pk__in' instead of 'place_id__in' work, too. + # Subquery using 'pk__in' instead of 'place_id__in' work, too. q2 = Restaurant.objects.filter( pk__in=Restaurant.objects.filter(place__id=r.place.pk) ) |