diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-06-27 15:08:19 +0800 |
---|---|---|
committer | James Abbatiello <abbeyj@gmail.com> | 2009-06-28 12:17:35 +0800 |
commit | 7285ce6a34db50c85434ccc6f5c4682f1f450f10 (patch) | |
tree | c5b78a493537a1f516967771532500ceed97b8f4 | |
parent | 40b5b82c1037677c0be46d9e81ba4f67c208d6f1 (diff) | |
download | python-cheetah-7285ce6a34db50c85434ccc6f5c4682f1f450f10.tar.gz |
Commit a broken test for multiple inheritance support
Signed-off-by: James Abbatiello <abbeyj@gmail.com>
-rw-r--r-- | src/Tests/Template.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Tests/Template.py b/src/Tests/Template.py index 9a07181..06f9768 100644 --- a/src/Tests/Template.py +++ b/src/Tests/Template.py @@ -326,7 +326,22 @@ class StaticMethodSupport(TemplateTest): except AttributeError, ex: self.fail(ex) +class Useless(object): + def boink(self): + return [1, 2, 3] +class MultipleInheritanceSupport(TemplateTest): + def runTest(self): + template = ''' + #extends Template, Useless + #def foo() + #return [4,5] + $boink() + #end def + ''' + template = Template.compile(template) + template = template() + result = template.foo() + print result ################################################## |