summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-10-20 13:17:57 -0500
committerJordan Cook <jordan.cook.git@proton.me>2022-10-20 13:23:45 -0500
commit10fba0bcb772a2e46e758e4173d1ab99ec287e93 (patch)
treef16d1135f034ed8af8ac2aa0441efd7ba1072755 /tests
parentacdbe633a80ae9a8d9deb20c1255124f7e159b33 (diff)
downloadrequests-cache-10fba0bcb772a2e46e758e4173d1ab99ec287e93.tar.gz
Add support for header values as bytes
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/policy/test_actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/policy/test_actions.py b/tests/unit/policy/test_actions.py
index f5d4c4a..4ea133c 100644
--- a/tests/unit/policy/test_actions.py
+++ b/tests/unit/policy/test_actions.py
@@ -58,6 +58,7 @@ def test_init(
({'Expires': HTTPDATE_STR}, None), # Only valid for response headers
({'Cache-Control': 'max-age=60'}, 60),
({'Cache-Control': 'public, max-age=60'}, 60),
+ ({'Cache-Control': b'public, max-age=60'}, 60), # requests-oauthlib casts headers to bytes
({'Cache-Control': 'max-age=0'}, EXPIRE_IMMEDIATELY),
],
)