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/custom_managers | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/custom_managers')
-rw-r--r-- | tests/custom_managers/tests.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/custom_managers/tests.py b/tests/custom_managers/tests.py index 63729e43f2..3daaeab131 100644 --- a/tests/custom_managers/tests.py +++ b/tests/custom_managers/tests.py @@ -72,7 +72,7 @@ class CustomManagerTests(TestCase): self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type) self.assertIs(queryset._filter_CustomQuerySet, True) - # Test that specialized querysets inherit from our custom queryset. + # Specialized querysets inherit from our custom queryset. queryset = manager.values_list('first_name', flat=True).filter() self.assertEqual(list(queryset), [six.text_type("Bugs")]) self.assertIs(queryset._filter_CustomQuerySet, True) @@ -283,7 +283,7 @@ class CustomManagerTests(TestCase): Person.objects.create(first_name="Bugs", last_name="Bunny", fun=True, favorite_book=self.b1) droopy = Person.objects.create(first_name="Droopy", last_name="Dog", fun=False, favorite_book=self.b1) - # Check that the fun manager DOESN'T remove boring people. + # The fun manager DOESN'T remove boring people. self.b1.favorite_books(manager='fun_people').remove(droopy, bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_books(manager='boring_people').all(), [ @@ -292,7 +292,7 @@ class CustomManagerTests(TestCase): lambda c: c.first_name, ordered=False, ) - # Check that the boring manager DOES remove boring people. + # The boring manager DOES remove boring people. self.b1.favorite_books(manager='boring_people').remove(droopy, bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_books(manager='boring_people').all(), [ @@ -303,7 +303,7 @@ class CustomManagerTests(TestCase): droopy.favorite_book = self.b1 droopy.save() - # Check that the fun manager ONLY clears fun people. + # The fun manager ONLY clears fun people. self.b1.favorite_books(manager='fun_people').clear(bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_books(manager='boring_people').all(), [ @@ -363,7 +363,7 @@ class CustomManagerTests(TestCase): Person.objects.create(first_name="Bugs", last_name="Bunny", fun=True, favorite_thing=self.b1) droopy = Person.objects.create(first_name="Droopy", last_name="Dog", fun=False, favorite_thing=self.b1) - # Check that the fun manager DOESN'T remove boring people. + # The fun manager DOESN'T remove boring people. self.b1.favorite_things(manager='fun_people').remove(droopy, bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_things(manager='boring_people').all(), [ @@ -373,7 +373,7 @@ class CustomManagerTests(TestCase): ordered=False, ) - # Check that the boring manager DOES remove boring people. + # The boring manager DOES remove boring people. self.b1.favorite_things(manager='boring_people').remove(droopy, bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_things(manager='boring_people').all(), [ @@ -384,7 +384,7 @@ class CustomManagerTests(TestCase): droopy.favorite_thing = self.b1 droopy.save() - # Check that the fun manager ONLY clears fun people. + # The fun manager ONLY clears fun people. self.b1.favorite_things(manager='fun_people').clear(bulk=bulk) self.assertQuerysetEqual( self.b1.favorite_things(manager='boring_people').all(), [ @@ -444,7 +444,7 @@ class CustomManagerTests(TestCase): droopy = Person.objects.create(first_name="Droopy", last_name="Dog", fun=False) self.b1.authors.add(droopy) - # Check that the fun manager DOESN'T remove boring people. + # The fun manager DOESN'T remove boring people. self.b1.authors(manager='fun_people').remove(droopy) self.assertQuerysetEqual( self.b1.authors(manager='boring_people').all(), [ @@ -454,7 +454,7 @@ class CustomManagerTests(TestCase): ordered=False, ) - # Check that the boring manager DOES remove boring people. + # The boring manager DOES remove boring people. self.b1.authors(manager='boring_people').remove(droopy) self.assertQuerysetEqual( self.b1.authors(manager='boring_people').all(), [ @@ -464,7 +464,7 @@ class CustomManagerTests(TestCase): ) self.b1.authors.add(droopy) - # Check that the fun manager ONLY clears fun people. + # The fun manager ONLY clears fun people. self.b1.authors(manager='fun_people').clear() self.assertQuerysetEqual( self.b1.authors(manager='boring_people').all(), [ |