From 6037df55b372beb6cbafa20e857947c5436f4f86 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Sun, 9 May 2010 23:37:29 -0700 Subject: [PATCH] web: add a simple test that you can load directory.xhtml --- src/allmydata/test/test_web.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.45.2