# Functions
AddUserSessionCookie adds a new cookie for the given user on the incoming request, so that we can test authentication in handlers.
SetupAuthorisation sets up mock authorisation.
SetupTestDatabase sets up the database for all tests from the test config.
SetupView sets up the view package for testing by loading templates.
ValidateBoolean returns the bool value of param or false.
ValidateFloat returns the float value of param or 0.0.
ValidateInt returns the int value of param or 0.
ValidateString returns the string value of param or "".
ValidateTime returns the time value of param or the zero value of time.Time.