mirror of https://github.com/scrapy/scrapy.git
Fix httpcache doctest that assumed dictionary order
This commit is contained in:
parent
1186969715
commit
c50f088b63
|
|
@ -290,10 +290,11 @@ def parse_cachecontrol(header):
|
|||
|
||||
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
|
||||
|
||||
>>> parse_cachecontrol('public, max-age=3600')
|
||||
{'public': None, 'max-age': '3600'}
|
||||
>>> parse_cachecontrol('')
|
||||
{}
|
||||
>>> parse_cachecontrol('public, max-age=3600') == {'public': None,
|
||||
... 'max-age': '3600'}
|
||||
True
|
||||
>>> parse_cachecontrol('') == {}
|
||||
True
|
||||
|
||||
"""
|
||||
directives = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue