mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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
This commit is contained in:
@@ -584,6 +584,7 @@ class GZipMiddlewareTest(TestCase):
|
||||
self.assertEqual(r.get('Content-Encoding'), None)
|
||||
|
||||
|
||||
@override_settings(USE_ETAGS=True)
|
||||
class ETagGZipMiddlewareTest(TestCase):
|
||||
"""
|
||||
Tests if the ETag middleware behaves correctly with GZip middleware.
|
||||
@@ -610,6 +611,3 @@ class ETagGZipMiddlewareTest(TestCase):
|
||||
nogzip_etag = response.get('ETag')
|
||||
|
||||
self.assertNotEqual(gzip_etag, nogzip_etag)
|
||||
ETagGZipMiddlewareTest = override_settings(
|
||||
USE_ETAGS=True,
|
||||
)(ETagGZipMiddlewareTest)
|
||||
|
||||
Reference in New Issue
Block a user