summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-06-27 15:08:19 +0800
committerJames Abbatiello <abbeyj@gmail.com>2009-06-28 12:17:35 +0800
commit7285ce6a34db50c85434ccc6f5c4682f1f450f10 (patch)
treec5b78a493537a1f516967771532500ceed97b8f4
parent40b5b82c1037677c0be46d9e81ba4f67c208d6f1 (diff)
downloadpython-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.py15
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
##################################################