mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
parent
4bb70cbcc6
commit
321e94fa41
185 changed files with 1216 additions and 1528 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue