3
5
RENDERED = u"<html>\n<head>\n<title>%s</title>\n</head>\n<body>\n<div>Hello, %s</div>\n</body>\n</html>"
5
7
def test_template_lookup():
10
13
info = dict(title=TITLE, name=NAME)
11
14
s = template.expand(**info)
12
15
assert s.startswith(RENDERED % (TITLE, NAME))