test_request_utils.py 文件源码

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

项目:vws-python 作者: adamtheturtle 项目源码 文件源码
def test_rfc_1123_date(self) -> None:
        """
        ``rfc_1123_date`` returns the date formatted as required by Vuforia.
        This test matches the example date set at
        `<https://library.vuforia.com/articles/Training/Using-the-VWS-API>`_.
        """
        date = datetime.datetime(
            day=22,
            month=4,
            year=2012,
            hour=8,
            minute=49,
            second=37,
        )
        with freeze_time(date):
            assert rfc_1123_date() == 'Sun, 22 Apr 2012 08:49:37 GMT'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号