summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorThomas Chaumeny <thomas.chaumeny@polyconseil.fr>2014-09-26 14:31:50 +0200
committerLoic Bistuer <loic.bistuer@gmail.com>2014-09-29 00:01:38 +0700
commitb2aad7b836bfde012756cca69291c14d2fdbd334 (patch)
tree53c93f9804075ed347d6d83718d37f7dc2a06340 /tests/cache
parentcaf5cd7ba7c9d73194e394a26c81f1a677d54a6c (diff)
downloaddjango-b2aad7b836bfde012756cca69291c14d2fdbd334.tar.gz
Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.
Thanks Collin Anderson for the review.
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 4677791fcd..926136a587 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -1422,16 +1422,16 @@ class CacheUtils(TestCase):
def test_patch_cache_control(self):
tests = (
# Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts
- (None, {'private': True}, set(['private'])),
+ (None, {'private': True}, {'private'}),
# Test whether private/public attributes are mutually exclusive
- ('private', {'private': True}, set(['private'])),
- ('private', {'public': True}, set(['public'])),
- ('public', {'public': True}, set(['public'])),
- ('public', {'private': True}, set(['private'])),
- ('must-revalidate,max-age=60,private', {'public': True}, set(['must-revalidate', 'max-age=60', 'public'])),
- ('must-revalidate,max-age=60,public', {'private': True}, set(['must-revalidate', 'max-age=60', 'private'])),
- ('must-revalidate,max-age=60', {'public': True}, set(['must-revalidate', 'max-age=60', 'public'])),
+ ('private', {'private': True}, {'private'}),
+ ('private', {'public': True}, {'public'}),
+ ('public', {'public': True}, {'public'}),
+ ('public', {'private': True}, {'private'}),
+ ('must-revalidate,max-age=60,private', {'public': True}, {'must-revalidate', 'max-age=60', 'public'}),
+ ('must-revalidate,max-age=60,public', {'private': True}, {'must-revalidate', 'max-age=60', 'private'}),
+ ('must-revalidate,max-age=60', {'public': True}, {'must-revalidate', 'max-age=60', 'public'}),
)
cc_delim_re = re.compile(r'\s*,\s*')