1
from turbogears import testutil
2
from loggerhead.controllers import Root
8
"the index method should return a string called now"
10
result = testutil.call(cherrypy.root.index)
11
assert type(result["now"]) == types.StringType
13
def test_indextitle():
14
"The mainpage should have the right title"
15
testutil.createRequest("/")
16
assert "<TITLE>Welcome to TurboGears</TITLE>" in cherrypy.response.body[0]