diff options
| author | Flavio Curella <flavio.curella@gmail.com> | 2019-10-10 12:16:32 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-10 12:24:52 +0200 |
| commit | 9facc9002079d2713bb2591ca01f3aca0b678a00 (patch) | |
| tree | 499b9c09fc898a38db17e1261fa9f53f277fbf83 | |
| parent | ee6b17187fbf19d498c16bd46ec6dd6aaf86f453 (diff) | |
Refs #23755 -- Added tests for patch_cache_control() with no-cache Cache-Control directive.
| -rw-r--r-- | tests/cache/tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py index ec515a297b..648ffbc499 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -1700,7 +1700,11 @@ class CacheUtils(SimpleTestCase): # Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts (None, {'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 ('private', {'private': True}, {'private'}), ('private', {'public': True}, {'public'}), |
