From: David-Sarah Hopwood Date: Sun, 17 Mar 2013 18:26:34 +0000 (+0000) Subject: test_web.py: relax tests for upload and mkdir forms to tolerate nondeterministic... X-Git-Tag: allmydata-tahoe-1.10a1~7 X-Git-Url: https://git.rkrishnan.org/pf/components/com_hotproperty/nxhtml.html?a=commitdiff_plain;h=75f6c8ca081895686ba631430f3c85dcf6ae2bcf;p=tahoe-lafs%2Ftahoe-lafs.git test_web.py: relax tests for upload and mkdir forms to tolerate nondeterministic order of attributes. Signed-off-by: David-Sarah Hopwood --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index f908fd55..f56fb555 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -1445,16 +1445,16 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi # We should have a form to create a file, with radio buttons that allow # the user to toggle whether it is a CHK/LIT (default), SDMF, or MDMF file. self.failUnlessIn('name="t" value="upload"', html) - self.failUnlessIn('input checked="checked" type="radio" id="upload-chk" value="chk" name="format"', html) - self.failUnlessIn('input type="radio" id="upload-sdmf" value="sdmf" name="format"', html) - self.failUnlessIn('input type="radio" id="upload-mdmf" value="mdmf" name="format"', html) + self.failUnless(re.search('