summaryrefslogtreecommitdiff
path: root/tests/test_cachecontrol.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-01-09 13:24:53 -0600
committerMichael Merickel <michael@merickel.org>2018-01-09 13:26:59 -0600
commit05208c47f0290dbb1ed7f027a147b0ee5712c841 (patch)
treee9bc2d80254249e3498362227007cf74c1f706bd /tests/test_cachecontrol.py
parent3fa9632225ae4321178a21935669a2cda2610c18 (diff)
downloadwebob-immutable-cache-control.tar.gz
add support for immutable cache-control response headerimmutable-cache-control
Diffstat (limited to 'tests/test_cachecontrol.py')
-rw-r--r--tests/test_cachecontrol.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_cachecontrol.py b/tests/test_cachecontrol.py
index 04ddaa6..ce299d9 100644
--- a/tests/test_cachecontrol.py
+++ b/tests/test_cachecontrol.py
@@ -227,10 +227,11 @@ class TestCacheControl(object):
def test_parse(self):
from webob.cachecontrol import CacheControl
- cc = CacheControl.parse("public, max-age=315360000")
+ cc = CacheControl.parse("public, max-age=315360000, immutable")
assert type(cc) == CacheControl
assert cc.max_age == 315360000
assert cc.public is True
+ assert cc.immutable is True
def test_parse_updates_to(self):
from webob.cachecontrol import CacheControl