Permalink
Browse files

Add another LongCompile test that initializes and executes the templa…

…te as well

Signed-off-by: James Abbatiello <abbeyj@gmail.com>
  • Loading branch information...
1 parent 23214cb commit 81cc41cabf295e6e71f5a89e6d18c286cf8475a6 R. Tyler Ballance committed with abbeyj Jun 28, 2009
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/Tests/Performance.py
View
13 src/Tests/Performance.py
@@ -187,7 +187,10 @@ def performanceSample(self):
<body>
$header()
- This is just some stupid page!
+ #for $i in $xrange(10)
+ This is just some stupid page!
+ <br/>
+ #end for
<br/>
$footer()
@@ -196,12 +199,18 @@ def performanceSample(self):
#end def
'''
- template = self.compile(template)
+ return self.compile(template)
class LongCompile_CompilerSettingsTest(LongCompileTest):
def compile(self, template):
return Cheetah.Template.Template.compile(template, keepRefToGeneratedCode=False,
compilerSettings={'useStackFrames' : True, 'useAutocalling' : True})
+
+class LongCompileAndRun(LongCompileTest):
+ def performanceSample(self):
+ template = super(LongCompileAndRun, self).performanceSample()
+ template = template(searchList=[{'title' : 'foo'}])
+ template = template.respond()
if __name__ == '__main__':

0 comments on commit 81cc41c

Please sign in to comment.