projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da57ba
)
web: add a simple test that you can load directory.xhtml
author
Zooko O'Whielacronx
<zooko@zooko.com>
Mon, 10 May 2010 06:37:29 +0000
(23:37 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Mon, 10 May 2010 06:37:29 +0000
(23:37 -0700)
src/allmydata/test/test_web.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_web.py
b/src/allmydata/test/test_web.py
index b1485981a7e73a0076b31147278d3fdf8b4dff83..77a71fb99df214e5f893402659f9b2c58972ff0e 100644
(file)
--- 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)