From: freestorm77 Date: Tue, 22 Jun 2010 20:14:03 +0000 (-0700) Subject: runnin_test_directory_xhtml.dpatch X-Git-Url: https://git.rkrishnan.org/pf/content/FOOURL?a=commitdiff_plain;h=0304918a77763cc4c87f6e4f6decb46ba6c0507c;p=tahoe-lafs%2Ftahoe-lafs.git runnin_test_directory_xhtml.dpatch Runnin test for diretory.xhtml top banner --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index c67e81cc..41d50a23 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -985,6 +985,13 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): d.addBoth(self.should404, "test_GET_FILEURL_uri_missing") return d + def test_GET_DIRECTORY_html_banner(self): + d = self.GET(self.public_url + "/foo", followRedirect=True) + def _check(res): + self.failUnlessIn('
Return to Welcome page
',res) + d.addCallback(_check) + return d + def test_GET_DIRURL(self): # the addSlash means we get a redirect here # from /uri/$URI/foo/ , we need ../../../ to get back to the root