1#!/usr/bin/env python 2 3from .helpers import urlopen 4 5from circuits.web import Controller 6 7 8class Root(Controller): 9 10 def index(self, *args, **kwargs): 11 return "ERROR" 12 13 14def application(environ, start_response): 15 status = "200 OK" 16 start_response(status, []) 17 return [""] 18 19 20def test(webapp): 21 f = urlopen(webapp.server.http.base) 22 s = f.read() 23 assert s == b"" 24