From: Zooko O'Whielacronx Date: Thu, 20 Dec 2007 22:23:07 +0000 (-0700) Subject: make the unit test of the overwrite button more general X-Git-Url: https://git.rkrishnan.org/class-simplejson.JSONDecoder-index.html?a=commitdiff_plain;h=a7361179aa698c3af3221e70933b01eb94161e22;p=tahoe-lafs%2Ftahoe-lafs.git make the unit test of the overwrite button more general --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 5e87e375..1c96c8d3 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -1002,8 +1002,8 @@ class Web(WebMixin, unittest.TestCase): # test that clicking on the "overwrite" button works EVEN_NEWER_CONTENTS = NEWER_CONTENTS + "even newer\n" - OVERWRITE_FORM_RE=re.compile('
OverwriteChoose new file:
', re.I) def _parse_overwrite_form_and_submit(res): + OVERWRITE_FORM_RE=re.compile('
', re.I) mo = OVERWRITE_FORM_RE.search(res) self.failUnless(mo) formaction=mo.group(1)