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/generic_relations | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/generic_relations')
-rw-r--r-- | tests/generic_relations/tests.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/generic_relations/tests.py b/tests/generic_relations/tests.py index ca029c6050..540c3456f2 100644 --- a/tests/generic_relations/tests.py +++ b/tests/generic_relations/tests.py @@ -327,9 +327,9 @@ class GenericRelationsTests(TestCase): self.assertQuerysetEqual(bacon.tags.all(), []) def test_assign_with_queryset(self): - # Ensure that querysets used in reverse GFK assignments are pre-evaluated - # so their value isn't affected by the clearing operation in - # ManyRelatedManager.set() (#19816). + # Querysets used in reverse GFK assignments are pre-evaluated so their + # value isn't affected by the clearing operation + # in ManyRelatedManager.set() (#19816). bacon = Vegetable.objects.create(name="Bacon", is_yucky=False) bacon.tags.create(tag="fatty") bacon.tags.create(tag="salty") @@ -342,8 +342,7 @@ class GenericRelationsTests(TestCase): self.assertEqual(1, qs.count()) def test_generic_relation_related_name_default(self): - # Test that GenericRelation by default isn't usable from - # the reverse side. + # GenericRelation isn't usable from the reverse side by default. with self.assertRaises(FieldError): TaggedItem.objects.filter(vegetable__isnull=True) @@ -489,7 +488,7 @@ id="id_generic_relations-taggeditem-content_type-object_id-1-id" /></p>""" % tag def test_subclasses_with_gen_rel(self): """ - Test that concrete model subclasses with generic relations work + Concrete model subclasses with generic relations work correctly (ticket 11263). """ granite = Rock.objects.create(name='granite', hardness=5) |