From: Zooko O'Whielacronx Date: Mon, 10 May 2010 06:37:29 +0000 (-0700) Subject: web: add a simple test that you can load directory.xhtml X-Git-Url: https://git.rkrishnan.org/pf/content//%22%3C?a=commitdiff_plain;h=6037df55b372beb6cbafa20e857947c5436f4f86;p=tahoe-lafs%2Ftahoe-lafs.git web: add a simple test that you can load directory.xhtml --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index b1485981..77a71fb9 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -3046,6 +3046,10 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): class Util(unittest.TestCase, ShouldFailMixin): + def test_load_file(self): + # This will raise an exception unless a well-formed XML file is found under that name. + common.getxmlfile('directory.xhtml').load() + def test_parse_replace_arg(self): self.failUnlessEqual(common.parse_replace_arg("true"), True) self.failUnlessEqual(common.parse_replace_arg("false"), False)