Fix httpcache doctest that assumed dictionary order

This commit is contained in:
Julia Medina 2014-04-04 16:58:08 -03:00
parent 1186969715
commit c50f088b63
1 changed files with 5 additions and 4 deletions

View File

@ -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 = {}