File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,17 @@ def test_get_normalized_parameters_empty(self):
545545
546546 self .assertEquals (expected , res )
547547
548+ def test_get_normalized_parameters_duplicate (self ):
549+ url = "http://example.com/v2/search/videos?oauth_nonce=79815175&oauth_timestamp=1295397962&oauth_consumer_key=mykey&oauth_signature_method=HMAC-SHA1&q=car&oauth_version=1.0&offset=10&oauth_signature=spWLI%2FGQjid7sQVd5%2FarahRxzJg%3D"
550+
551+ req = oauth .Request ("GET" , url )
552+
553+ res = req .get_normalized_parameters ()
554+
555+ expected = 'oauth_consumer_key=mykey&oauth_nonce=79815175&oauth_signature=spWLI%2FGQjid7sQVd5%2FarahRxzJg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1295397962&oauth_version=1.0&offset=10&q=car'
556+
557+ self .assertEquals (expected , res )
558+
548559 def test_get_normalized_parameters_from_url (self ):
549560 # example copied from
550561 # https://github.com/ciaranj/node-oauth/blob/master/tests/oauth.js
You can’t perform that action at this time.
0 commit comments