[twill] Redirecting... twill-latest vs twill-0.9b1
eli.carter at commprove.com
Wed Aug 22 13:27:03 PDT 2007
I'm trying to use twill-latest with a set of tests that I had working with
twill-0.9b1. It appears that twill's behavior in the face of redirects has
tc.add_auth("", self.url, username, username)
# We've provided authentication info earlier, so this should
# redirect back to the base url.
tc.find("logged in as %s" % username)
This worked with 0.9b1.
With -latest, the find("logged in as %s" % username), is looking at a page
consisting of 'Redirecting...' .
What am I doing wrong here?
 For those who care,
 As can be seen if you apply the following patch:
diff -urN --exclude='*.pyc' twill-latest/twill/commands.py
--- twill-latest/twill/commands.py 2007-08-22 03:05:09.000000000 -0500
+++ twill-latest.ejc/twill/commands.py 2007-08-22 15:01:53.000000000 -0500
@@ -231,7 +231,7 @@
m = regexp.search(page)
if not m:
- raise TwillAssertionError("no match to '%s'" % (what,))
+ raise TwillAssertionError("no match to '%s'" % (what,), page)
match_str = m.group(1)
More information about the twill