[cse491] twill tests fail

C. Titus Brown ctb at msu.edu
Mon Nov 3 18:20:17 PST 2008


On Mon, Nov 03, 2008 at 05:50:31AM -0500, Kareem Janoudi wrote:
-> I emailed titus about this last week, believe he is still working on it. I
-> do think it is a bug within twill and possibly the reason could be that it
-> does not escape the string properly prior to using it in a regex find. if
-> you test for a user whose username is: "username=')", it will print
-> correctly on the /auth/print, and it will set the cookie correctly, but
-> twill cannot search for it using "find" because it transforms the string
-> given to a regular expression, which includes unescaped characters, such as
-> ). The error given is: error: unbalanced parenthesis in this particular
-> case.

Hi Kareem,

you can do

	find "username containing \( or \)"

if you want to match

	username containing ( or )

You are correct that this is a bug in twill.  Sigh.

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2008 mailing list