def METHOD_NAME(
    self, factories, pyramid_csrf_request, user_service, user_password_service
):
    user = factories.User.build(username="jeannie")
    user_service.fetch_for_login.return_value = user
    schema = LoginSchema().bind(request=pyramid_csrf_request)
    schema.deserialize({"username": "jeannie", "password": "cake"})
    user_password_service.check_password.assert_called_once_with(user, "cake")