From 0304918a77763cc4c87f6e4f6decb46ba6c0507c Mon Sep 17 00:00:00 2001 From: freestorm77 Date: Tue, 22 Jun 2010 13:14:03 -0700 Subject: [PATCH] runnin_test_directory_xhtml.dpatch Runnin test for diretory.xhtml top banner --- src/allmydata/test/test_web.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.2