Authorization >>> Added tests, checkUser function, python mock for checking