]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web: add a simple test that you can load directory.xhtml
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 10 May 2010 06:37:29 +0000 (23:37 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 10 May 2010 06:37:29 +0000 (23:37 -0700)
src/allmydata/test/test_web.py

index b1485981a7e73a0076b31147278d3fdf8b4dff83..77a71fb99df214e5f893402659f9b2c58972ff0e 100644 (file)
@@ -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)