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'
评论列表
文章目录