def test_requestor_is_superuser_for_anonymous_user(): user = AnonymousUser() result = requestor_is_superuser(user) assert result is False
def test_requestor_is_superuser_for_superuser(superuser): result = requestor_is_superuser(superuser) assert result is True
def test_requestor_is_superuser_for_app(app): result = requestor_is_superuser(app) assert result is False
def test_requestor_is_superuser_for_staff_user(staff_user): result = requestor_is_superuser(staff_user) assert result is False