mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 19:26:25 +00:00
web: add a simple test that you can load directory.xhtml
This commit is contained in:
parent
2da57bab5f
commit
6037df55b3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user