def test_user_password(self, testapp):

        admin = User('admin', 'supersafepassword')

        assert admin.username == 'admin'
        assert admin.check_password('supersafepassword')
Test password hashing and checking
dataset/ETHPy150Open JackStouffer/Flask-Foundation/tests/test_models.py/TestModels.test_user_password