Refs #23755 -- Added tests for patch_cache_control() with no-cache Cache-Control directive.

This commit is contained in:
Flavio Curella 2019-10-10 12:16:32 +02:00 committed by Mariusz Felisiak
parent ee6b17187f
commit 9facc90020
1 changed files with 5 additions and 1 deletions

View File

@ -1700,7 +1700,11 @@ class CacheUtils(SimpleTestCase):
# Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts # Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts
(None, {'private': True}, {'private'}), (None, {'private': True}, {'private'}),
('', {'private': True}, {'private'}), ('', {'private': True}, {'private'}),
# no-cache.
('', {'no_cache': 'Set-Cookie'}, {'no-cache=Set-Cookie'}),
('', {'no-cache': 'Set-Cookie'}, {'no-cache=Set-Cookie'}),
('no-cache=Set-Cookie', {'no_cache': True}, {'no-cache'}),
('no-cache=Set-Cookie,no-cache=Link', {'no_cache': True}, {'no-cache'}),
# Test whether private/public attributes are mutually exclusive # Test whether private/public attributes are mutually exclusive
('private', {'private': True}, {'private'}), ('private', {'private': True}, {'private'}),
('private', {'public': True}, {'public'}), ('private', {'public': True}, {'public'}),