~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to turbosimpletal/tests/test_zpt.py

all tests pass, apart from the revision size limit one

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    TITLE="test"
14
14
    NAME="World"
15
15
    info = dict(title=TITLE, name=NAME)
16
 
    import StringIO
17
 
    s = StringIO.StringIO()
18
 
    from simpletal import simpleTALES
19
 
    context = simpleTALES.Context(allowPythonPath=1)
20
 
    for k, v in info.iteritems():
21
 
        context.addGlobal(k, v)
22
 
    template.expand(context, s)#(**info)
23
 
    print s.getvalue()
24
 
    print RENDERED % (TITLE, NAME)
25
 
    assert s.getvalue().startswith(RENDERED % (TITLE, NAME))
 
16
    s = template(**info)
 
17
    assert s.startswith(RENDERED % (TITLE, NAME))
26
18
 
27
19
class TestRoot(controllers.Root):
28
20
    def index(self, name, title="test"):