mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 15:32:39 +00:00
docstrings
This commit is contained in:
parent
9952002a49
commit
c8ba9f7004
@ -142,17 +142,22 @@ class RenderRoot(unittest.TestCase):
|
|||||||
self.client = FakeClient()
|
self.client = FakeClient()
|
||||||
|
|
||||||
def test_basic_stan(self):
|
def test_basic_stan(self):
|
||||||
|
"""
|
||||||
|
we can render the root without any exceptions
|
||||||
|
"""
|
||||||
|
|
||||||
class MyRoot(Element):
|
class MyRoot(Element):
|
||||||
loader = XMLString(GOLDEN_ROOT)
|
loader = XMLString(GOLDEN_ROOT)
|
||||||
|
|
||||||
request = FakeRequest()
|
request = FakeRequest()
|
||||||
r = MyRoot()
|
r = MyRoot()
|
||||||
data = r.render(request)
|
r.render(request)
|
||||||
print(data)
|
|
||||||
|
|
||||||
@inlineCallbacks
|
@inlineCallbacks
|
||||||
def test_root_template(self):
|
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 = Root(self.client, self.clock, now_fn=self.clock.seconds)
|
||||||
page.addSlash = False # XXX hack around what looks like nevow testutils bug
|
page.addSlash = False # XXX hack around what looks like nevow testutils bug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user