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