test_request_utils.py 文件源码

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

项目:vws-python 作者: adamtheturtle 项目源码 文件源码
def test_example(self) -> None:
        """
        Test a successful example of creating an Authorization header.
        """
        result = authorization_header(
            access_key=b'my_access_key',
            secret_key=b'my_secret_key',
            method=GET,
            content=b'{"something": "other"}',
            content_type='text/example',
            date='Sun, 22 Apr 2012 08:49:37 GMT.',
            request_path='/example_path',
        )

        assert result == b'VWS my_access_key:CetfV6Yl/3mSz/Xl0c+O1YjXKYg='
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号