diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-30 09:08:29 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-30 09:08:29 +0000 |
| commit | eb163f37cb62268443d592f8ce08bd8a0ab9631d (patch) | |
| tree | a373546137a3833d476b207d6490bd39c1e51a81 /django/contrib/sitemaps/tests/https.py | |
| parent | 9383a2761c67d588378f3679cc6c8ea3651a73c8 (diff) | |
Use the class decorator syntax available in Python >= 2.6. Refs #17965.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/sitemaps/tests/https.py')
| -rw-r--r-- | django/contrib/sitemaps/tests/https.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/django/contrib/sitemaps/tests/https.py b/django/contrib/sitemaps/tests/https.py index b590bf2215..d4f9053fc8 100644 --- a/django/contrib/sitemaps/tests/https.py +++ b/django/contrib/sitemaps/tests/https.py @@ -26,7 +26,8 @@ class HTTPSSitemapTests(SitemapTestsBase): </urlset> """ % (self.base_url, date.today())) -#@override_settings(SECURE_PROXY_SSL_HEADER=False) + +@override_settings(SECURE_PROXY_SSL_HEADER=False) class HTTPSDetectionSitemapTests(SitemapTestsBase): extra = {'wsgi.url_scheme': 'https'} @@ -47,5 +48,3 @@ class HTTPSDetectionSitemapTests(SitemapTestsBase): <url><loc>%s/location/</loc><lastmod>%s</lastmod><changefreq>never</changefreq><priority>0.5</priority></url> </urlset> """ % (self.base_url.replace('http://', 'https://'), date.today())) - -HTTPSDetectionSitemapTests = override_settings(SECURE_PROXY_SSL_HEADER=False)(HTTPSDetectionSitemapTests) |
