func CreateWebContext() *web.Context { context := new(web.Context) context.Server = new(web.Server) context.Server.Env = map[string]interface{}{} context.Server.Env["state"] = CreateAndPopulateTestState() context.ResponseWriter = new(TestResponseWriter) return context }
func ClearContextResponseWriter(context *web.Context) { context.ResponseWriter = new(TestResponseWriter) }