def METHOD_NAME(self):
    def setter(request):
        del request  # Unused
        class User:
            pass
        class Role:
            pass
        user = User()
        user.username = "__foo"
        role = Role()
        role.name = "__bar"
        user.settings_role = role
        user.roles = [role]
        return user
    request = create_dummy_request(authentication=False, user="__test_user")
    request.set_property(setter, name="user", reify=True)
    assert request.user.username == "__foo"
    assert [role.name for role in request.user.roles] == ["__bar"]