summaryrefslogtreecommitdiff
path: root/tests/string_lookup
diff options
context:
space:
mode:
authorza <za@python.or.id>2016-10-27 14:53:39 +0700
committerTim Graham <timograham@gmail.com>2016-11-10 21:30:21 -0500
commit321e94fa41b121f65c02119c02098df327bbd569 (patch)
treece5476c191d589aca4b124f841dfbccac8dd299f /tests/string_lookup
parent4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff)
downloaddjango-321e94fa41b121f65c02119c02098df327bbd569.tar.gz
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/string_lookup')
-rw-r--r--tests/string_lookup/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/string_lookup/tests.py b/tests/string_lookup/tests.py
index 0bd60a053a..805833a8e4 100644
--- a/tests/string_lookup/tests.py
+++ b/tests/string_lookup/tests.py
@@ -12,8 +12,8 @@ class StringLookupTests(TestCase):
"""
Regression test for #1661 and #1662
- Check that string form referencing of
- models works, both as pre and post reference, on all RelatedField types.
+ String form referencing of models works, both as pre and post
+ reference, on all RelatedField types.
"""
f1 = Foo(name="Foo1")
@@ -79,5 +79,5 @@ class StringLookupTests(TestCase):
a = Article(name='IP test', text='The body', submitted_from='192.0.2.100')
a.save()
self.assertSequenceEqual(Article.objects.filter(submitted_from__contains='192.0.2'), [a])
- # Test that the searches do not match the subnet mask (/32 in this case)
+ # The searches do not match the subnet mask (/32 in this case)
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)