15
13
info = dict(title=TITLE, name=NAME)
17
15
assert s.startswith(RENDERED % (TITLE, NAME))
19
17
class TestRoot(controllers.Root):
20
19
def index(self, name, title="test"):
21
20
return dict(name=name, title=title)
24
22
def test_real_life_situation():
25
23
cherrypy.root = TestRoot()
28
25
testutil.createRequest("/?name=%s" % NAME)
30
26
assert cherrypy.response.body[0].startswith(RENDERED % ("test", NAME))