Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Str Dict Str Str Str Str Str Str Str Call AttributeLoad Str attr Str Dict Str Str Str Str Str Str Num Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad Str attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad Str attr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A requests mock Mock patch cachecontrol.compat pickle cachecontrol.serialize Serializer cachecontrol.serialize _b64_encode cachecontrol.serialize _b64_decode_str TestSerializer N/A object N/A setup N/A N/A self N/A N/A N/A N/A self serializer N/A Serializer N/A N/A self response_data N/A response N/A body headers status version reason strict decode_content N/A N/A Hello World encode utf-8 N/A Content-Type Expires Cache-Control text/plain 87654 public 200 2 True N/A test_load_by_version_one N/A N/A self N/A N/A N/A data cc=0,somedata N/A req N/A Mock N/A resp N/A N/A N/A self serializer loads req data N/A N/A resp None N/A test_read_version_two N/A N/A self N/A N/A N/A req N/A Mock N/A resp N/A N/A N/A self serializer _loads_v1 req N/A N/A pickle dumps N/A self response_data N/A N/A N/A resp data N/A N/A Hello World encode utf-8 N/A test_read_v1_serialized_with_py2_TypeError N/A N/A self N/A N/A N/A req N/A Mock N/A py2_pickled_data N/A N/A join N/A (dp1
S'response'
p2
(dp3
S'body'
p4
S'Hello World'
 p5
sS'version'
p6
S'2'
sS'status'
p7
I200
 sS'reason'
p8
S''
sS'decode_content'
p9
I01
 sS'strict'
p10
S''
sS'headers'
p11
(dp12
 S'Content-Type'
p13
S'text/plain'
p14
 sS'Cache-Control'
p15
S'public'
p16
 sS'Expires'
p17
S'87654'
p18
sss. N/A resp N/A N/A N/A self serializer _loads_v1 req py2_pickled_data N/A N/A N/A resp data N/A N/A Hello World encode utf-8 N/A test_read_version_three_streamable N/A N/A self url N/A N/A N/A original_resp N/A N/A requests get url stream True N/A req N/A original_resp request N/A resp N/A N/A N/A self serializer loads req N/A N/A N/A self serializer dumps req N/A original_resp raw N/A N/A N/A resp read N/A test_read_version_three N/A N/A self url N/A N/A N/A original_resp N/A N/A requests get url N/A data N/A original_resp content N/A req N/A original_resp request N/A resp N/A N/A N/A self serializer loads req N/A N/A N/A self serializer dumps req N/A original_resp raw body data N/A N/A N/A N/A resp read data N/A test_no_vary_header N/A N/A self url N/A N/A N/A original_resp N/A N/A requests get url N/A data N/A original_resp content N/A req N/A original_resp request N/A N/A N/A N/A original_resp raw headers N/A vary Foo N/A N/A N/A N/A self serializer loads req N/A N/A N/A self serializer dumps req N/A original_resp raw body data N/A N/A TestEncoding N/A object N/A N/A unicode_string N/A N/A \u201cmax-age=31536000\u2033 decode utf-8 N/A b64_result 4oCcbWF4LWFnZT0zMTUzNjAwMOKAsw== test_b64_encode_with_bytes N/A N/A self encode_bytes N/A N/A N/A N/A _b64_encode N/A N/A N/A self unicode_string encode utf-8 N/A N/A encode_bytes called N/A N/A patch cachecontrol.serialize._b64_encode_bytes test_b64_encode_with_str N/A N/A self encode_str N/A N/A N/A N/A _b64_encode N/A self unicode_string N/A N/A encode_str called N/A N/A patch cachecontrol.serialize._b64_encode_str test_b64_encode_with_unicode_encoded_as_unicode N/A N/A self N/A N/A N/A Some servers will respond with unicode encoded strings. The
        test below uses unicode open and close quotes around the max
        age setting, which raises an exception if we treat it as a
        string.

        This test ensures we recognize the unicode encoded string act
        accordingly.
         N/A unicode_result N/A _b64_encode N/A N/A N/A self unicode_string encode utf-8 N/A N/A N/A _b64_decode_str unicode_result N/A self unicode_string N/A bytes_result N/A _b64_encode N/A self unicode_string N/A N/A N/A _b64_decode_str bytes_result N/A self unicode_string N/A N/A