a1b9ea Adjust the unit-tests for the change in the api_login_required to use error_code

Authored and Committed by Pierre-Yves Chibon 9 years ago
    Adjust the unit-tests for the change in the api_login_required to use error_code