mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
docstrings
This commit is contained in:
parent
9952002a49
commit
c8ba9f7004
@ -142,17 +142,22 @@ class RenderRoot(unittest.TestCase):
|
||||
self.client = FakeClient()
|
||||
|
||||
def test_basic_stan(self):
|
||||
"""
|
||||
we can render the root without any exceptions
|
||||
"""
|
||||
|
||||
class MyRoot(Element):
|
||||
loader = XMLString(GOLDEN_ROOT)
|
||||
|
||||
request = FakeRequest()
|
||||
r = MyRoot()
|
||||
data = r.render(request)
|
||||
print(data)
|
||||
r.render(request)
|
||||
|
||||
@inlineCallbacks
|
||||
def test_root_template(self):
|
||||
"""
|
||||
The current root renders the same as it did with Nevow
|
||||
"""
|
||||
page = Root(self.client, self.clock, now_fn=self.clock.seconds)
|
||||
page.addSlash = False # XXX hack around what looks like nevow testutils bug
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user