test_oauth.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Fetch 作者: bourdakos1 项目源码 文件源码
def test_get_normalized_parameters_multiple(self):
        url = "http://example.com/v2/search/videos?oauth_nonce=79815175&oauth_timestamp=1295397962&oauth_consumer_key=mykey&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&offset=10&oauth_signature=spWLI%2FGQjid7sQVd5%2FarahRxzJg%3D&tag=one&tag=two"

        req = oauth.Request("GET", url)

        res = req.get_normalized_parameters()

        expected='oauth_consumer_key=mykey&oauth_nonce=79815175&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1295397962&oauth_version=1.0&offset=10&tag=one&tag=two'

        self.assertEqual(expected, res)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号