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