test_auth_helpers.py 文件源码

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

项目:django-modern-rpc 作者: alorence 项目源码 文件源码
def test_http_basic_get_user():

    # Basic django request, without authentication info
    request = HttpRequest()

    # Standard middlewares were not applied on this request
    user = http_basic_auth_get_user(request)

    assert user is not None
    assert user_is_anonymous(user)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号