1
from loggerhead.zptsupport import load_template
3
RENDERED = u"<html>\n<head>\n<title>%s</title>\n</head>\n<body>\n<div>Hello, %s</div>\n</body>\n</html>"
5
def test_template_lookup():
6
template = load_template("loggerhead.tests.simple")
10
info = dict(title=TITLE, name=NAME)
11
s = template.expand(**info)
12
assert s.startswith(RENDERED % (TITLE, NAME))