package main import ( "net/http" "net/url" "testing" "git.32bit.cafe/32bitcafe/guestbook/internal/assert" ) func TestUserSignup(t *testing.T) { app := newTestApplication(t) ts := newTestServer(t, app.routes()) defer ts.Close() _, _, body := ts.get(t, "/users/register") validCSRFToken := extractCSRFToken(t, body) const ( validName = "John" validPassword = "validPassword" validEmail = "john@example.com" formTag = `