summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
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*')