1#!/usr/bin/env python 2 3from circuits.web import Controller 4from circuits.web.wsgi import Application 5 6from .helpers import urlopen 7 8 9class Root(Controller): 10 11 def index(self): 12 yield "Hello " 13 yield "World!" 14 15application = Application() + Root() 16 17 18def test(webapp): 19 f = urlopen(webapp.server.http.base) 20 s = f.read() 21 assert s == b"Hello World!" 22