def test_user_password(self):
        admin = User('admin', 'supersafepassword')

        assert admin.username == 'admin'
        assert admin.check_password('supersafepassword')
Test password hashing and checking
dataset/ETHPy150Open CarlEkerot/flask-orm/tests/models/test_user.py/TestUserModel.test_user_password