def METHOD_NAME(self, svc, user):
    user.salt = "somesalt"
    # Generated with passlib.hash.bcrypt.hash('foobar' + 'somesalt', rounds=4)
    user.password = "$2a$04$zDQnlV/YBG.ju2i14V15p.5nWYL52ZBqjGsBWgLAisGkEJw812BHy"
    assert not svc.check_password(user, "somethingelse")
    assert svc.check_password(user, "foobar")