diff options
| author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2018-08-20 23:57:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-20 23:57:51 +0200 |
| commit | 153b72680f0044d694eb23bbd2c62b8c19ee5543 (patch) | |
| tree | 367128761a0e8a8851d8d5b0c7d37ffbf60a16c8 /tests | |
| parent | 0ac839f5435c267fe3643a6c7754bab4d0231cfd (diff) | |
| parent | 8cb3d7210132d7c94672a86468c3df3b6ef12c6a (diff) | |
| download | oauthlib-153b72680f0044d694eb23bbd2c62b8c19ee5543.tar.gz | |
Merge branch 'master' into 445_confirm_redirect
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_common.py | 5 |
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): |
