Skip to content

Commit

Permalink
improved picasso test
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@debian32 committed Aug 2, 2011
1 parent 0ca8977 commit c85231b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/picazzo.py
Expand Up @@ -6,9 +6,10 @@ def home(req):
return "<h1>Welcome back, %s!</h1>" % req["session"]["user"]

def login(req):
return "<form method='post'><input type='submit' value='login' /></form>"
return "<form method='post'><input type='submit' name='foo' value='login' /></form>"

def login_post(req):
print req
req["session"]["user"] = "James"
return redirect("/")

Expand Down

0 comments on commit c85231b

Please sign in to comment.