summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2018-08-20 23:57:51 +0200
committerGitHub <noreply@github.com>2018-08-20 23:57:51 +0200
commit153b72680f0044d694eb23bbd2c62b8c19ee5543 (patch)
tree367128761a0e8a8851d8d5b0c7d37ffbf60a16c8 /tests
parent0ac839f5435c267fe3643a6c7754bab4d0231cfd (diff)
parent8cb3d7210132d7c94672a86468c3df3b6ef12c6a (diff)
downloadoauthlib-153b72680f0044d694eb23bbd2c62b8c19ee5543.tar.gz
Merge branch 'master' into 445_confirm_redirect
Diffstat (limited to 'tests')
-rw-r--r--tests/test_common.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_common.py b/tests/test_common.py
index fb4bd5b..f239368 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -214,6 +214,11 @@ class RequestTest(TestCase):
self.assertNotIn('bar', repr(r))
self.assertIn('<SANITIZED>', repr(r))
+ def test_headers_params(self):
+ r = Request(URI, headers={'token': 'foobar'}, body='token=banana')
+ self.assertEqual(r.headers['token'], 'foobar')
+ self.assertEqual(r.token, 'banana')
+
class CaseInsensitiveDictTest(TestCase):