diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2014-06-03 14:37:15 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2014-06-03 14:37:15 +0100 |
commit | 294630c1c7946c57e2b315761361c6aec76cd2ca (patch) | |
tree | efd1aadac130ef32328062587c1d8d0c98113498 | |
parent | 14061935013ae20f58995dd2918c009166010bbc (diff) | |
download | oauthlib-294630c1c7946c57e2b315761361c6aec76cd2ca.tar.gz |
Fix Oauth1 client tests to pass request param to get_oauth_params method.
-rw-r--r-- | tests/oauth1/rfc5849/test_client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/oauth1/rfc5849/test_client.py b/tests/oauth1/rfc5849/test_client.py index 721e698..f85ad79 100644 --- a/tests/oauth1/rfc5849/test_client.py +++ b/tests/oauth1/rfc5849/test_client.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals +from oauthlib.common import Request from oauthlib.oauth1 import SIGNATURE_RSA, SIGNATURE_PLAINTEXT from oauthlib.oauth1 import SIGNATURE_TYPE_BODY, SIGNATURE_TYPE_QUERY from oauthlib.oauth1.rfc5849 import Client, bytes_type @@ -41,12 +42,12 @@ class ClientConstructorTests(TestCase): def test_give_explicit_timestamp(self): client = Client('client-key', timestamp='1') - params = dict(client.get_oauth_params()) + params = dict(client.get_oauth_params(Request('http://example.com'))) self.assertEqual(params['oauth_timestamp'], '1') def test_give_explicit_nonce(self): client = Client('client-key', nonce='1') - params = dict(client.get_oauth_params()) + params = dict(client.get_oauth_params(Request('http://example.com'))) self.assertEqual(params['oauth_nonce'], '1') def test_decoding(self): |