# This file is a part of the AnyBlok / Pyramid project
#
#    Copyright (C) 2019 Alexis TOURNEUX <tourneuxalexis@gmail.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file,You can
# obtain one at http://mozilla.org/MPL/2.0/.
import pytest


@pytest.mark.usefixtures('rollback_registry')
class TestUserIdentity:

    def test_user_identity(self, rollback_registry):

        registry = rollback_registry

        user = registry.User.insert(
            login="johnny_dowey", first_name="John", last_name="Doe")

        assert user.name == "John DOE"
