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/sites_tests | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/sites_tests')
-rw-r--r-- | tests/sites_tests/tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/sites_tests/tests.py b/tests/sites_tests/tests.py index 8c540f82ea..64fe2215d4 100644 --- a/tests/sites_tests/tests.py +++ b/tests/sites_tests/tests.py @@ -60,7 +60,7 @@ class SitesFrameworkTests(TestCase): @override_settings(ALLOWED_HOSTS=['example.com']) def test_get_current_site(self): - # Test that the correct Site object is returned + # The correct Site object is returned request = HttpRequest() request.META = { "SERVER_NAME": "example.com", @@ -70,7 +70,7 @@ class SitesFrameworkTests(TestCase): self.assertIsInstance(site, Site) self.assertEqual(site.id, settings.SITE_ID) - # Test that an exception is raised if the sites framework is installed + # An exception is raised if the sites framework is installed # but there is no matching Site site.delete() with self.assertRaises(ObjectDoesNotExist): @@ -265,9 +265,9 @@ class CreateDefaultSiteTests(TestCase): #17415 - Another site can be created right after the default one. On some backends the sequence needs to be reset after saving with an - explicit ID. Test that there isn't a sequence collisions by saving - another site. This test is only meaningful with databases that use - sequences for automatic primary keys such as PostgreSQL and Oracle. + explicit ID. There shouldn't be a sequence collisions by saving another + site. This test is only meaningful with databases that use sequences + for automatic primary keys such as PostgreSQL and Oracle. """ create_default_site(self.app_config, verbosity=0) Site(domain='example2.com', name='example2.com').save() @@ -309,7 +309,7 @@ class CreateDefaultSiteTests(TestCase): class MiddlewareTest(TestCase): def test_old_style_request(self): - """ Makes sure that the request has correct `site` attribute. """ + """The request has correct `site` attribute.""" middleware = CurrentSiteMiddleware() request = HttpRequest() middleware.process_request(request) |