1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.

This commit is contained in:
za
2016-10-27 14:53:39 +07:00
committed by Tim Graham
parent 4bb70cbcc6
commit 321e94fa41
185 changed files with 1216 additions and 1528 deletions

View File

@@ -63,7 +63,7 @@ class RawQueryTests(TestCase):
setattr(orig_item, *annotation)
for field in model._meta.fields:
# Check that all values on the model are equal
# All values on the model are equal
self.assertEqual(
getattr(item, field.attname),
getattr(orig_item, field.attname)
@@ -76,14 +76,13 @@ class RawQueryTests(TestCase):
def assertNoAnnotations(self, results):
"""
Check that the results of a raw query contain no annotations
The results of a raw query contain no annotations
"""
self.assertAnnotations(results, ())
def assertAnnotations(self, results, expected_annotations):
"""
Check that the passed raw query results contain the expected
annotations
The passed raw query results contain the expected annotations
"""
if expected_annotations:
for index, result in enumerate(results):