case i: Int => { getAndCheck(s1, "/login", "LOGIN PAGE BECAUSE NOT LOGGED IN", (check) => check.isStatus(200)) postAndCheck(s1, "/login", getLoginForm(s1), "LOGIN POST WHEN LOGGED OUT", check => check.isRedirect("/")) getAndCheck(s1, "/", "SHOW INDEX AFTER LOGIN", check => check.isStatus(200)) } }