[Cheetahtemplate-discuss] failed cheetah test
Brought to you by:
rtyler,
tavis_rudd
From: Markus J. <mar...@ya...> - 2004-01-20 21:22:08
|
hi I made the cheetah test and then I get some errors (see below) I have the latest CVS version, RedHat 7.3, Python 2.3.2 here are the errors and failures: any idea how to fix them ? cheetah test .........................................................................................................................................................................................................................................................E...E...E............................................................................................................................F.......F.F.......F.F.......F...........................................................................................................................................................................................................................................................................................................F.....................................................................................................................................................................................FFF..FFF..FFF...................................................................................................................................................................................................................................................................................................................................................3.. ********************************************************************** ERROR Cheetah.Tests.SyntaxAndOutput.ExtendsDirective.test4 (#extends SampleBaseClass without #import) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1998, in test4 '<img src="spacer.gif" width="1" height="1" alt="" />\n') File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 147, in verify self._gen(input) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 155, in _gen settings=self.settings(), File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 156, in __init__ self.compile(source, file) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 245, in compile compiler.compile() File "/usr/local/lib/python2.3/site-packages/Cheetah/Compiler.py", line 1088, in compile self.parse() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1037, in parse self.eatDirective() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1151, in eatDirective self.directiveEaters[directiveKey]() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1478, in eatExtends mod = self._templateObj._importAsDummyModule('\n'.join(self._importStatements)) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 452, in _importAsDummyModule mod = self._impModFromDummyPackage(packageName, tmpFilename) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 494, in _impModFromDummyPackage moduleDir, forceReload=1) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 524, in _importModuleFromDirectory module = imp.load_module(fullModuleName, fp, pathname, stuff) File "/tmp/__CheetahTemp_2004012022080883834.py", line 13, in ? from SampleBaseClass import SampleBaseClass ImportError: No module named SampleBaseClass ********************************************************************** ERROR Cheetah.Tests.SyntaxAndOutput.ExtendsDirective_MacEOL.test4 (#extends SampleBaseClass without #import) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1998, in test4 '<img src="spacer.gif" width="1" height="1" alt="" />\n') File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 147, in verify self._gen(input) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 155, in _gen settings=self.settings(), File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 156, in __init__ self.compile(source, file) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 245, in compile compiler.compile() File "/usr/local/lib/python2.3/site-packages/Cheetah/Compiler.py", line 1088, in compile self.parse() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1037, in parse self.eatDirective() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1151, in eatDirective self.directiveEaters[directiveKey]() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1478, in eatExtends mod = self._templateObj._importAsDummyModule('\n'.join(self._importStatements)) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 452, in _importAsDummyModule mod = self._impModFromDummyPackage(packageName, tmpFilename) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 494, in _impModFromDummyPackage moduleDir, forceReload=1) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 524, in _importModuleFromDirectory module = imp.load_module(fullModuleName, fp, pathname, stuff) File "/tmp/__CheetahTemp_2004012022080846587.py", line 13, in ? from SampleBaseClass import SampleBaseClass ImportError: No module named SampleBaseClass ********************************************************************** ERROR Cheetah.Tests.SyntaxAndOutput.ExtendsDirective_Win32EOL.test4 (#extends SampleBaseClass without #import) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1998, in test4 '<img src="spacer.gif" width="1" height="1" alt="" />\n') File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 147, in verify self._gen(input) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 155, in _gen settings=self.settings(), File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 156, in __init__ self.compile(source, file) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 245, in compile compiler.compile() File "/usr/local/lib/python2.3/site-packages/Cheetah/Compiler.py", line 1088, in compile self.parse() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1037, in parse self.eatDirective() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1151, in eatDirective self.directiveEaters[directiveKey]() File "/usr/local/lib/python2.3/site-packages/Cheetah/Parser.py", line 1478, in eatExtends mod = self._templateObj._importAsDummyModule('\n'.join(self._importStatements)) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 452, in _importAsDummyModule mod = self._impModFromDummyPackage(packageName, tmpFilename) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 494, in _impModFromDummyPackage moduleDir, forceReload=1) File "/usr/local/lib/python2.3/site-packages/Cheetah/Template.py", line 524, in _importModuleFromDirectory module = imp.load_module(fullModuleName, fp, pathname, stuff) File "/tmp/__CheetahTemp_2004012022080825693.py", line 13, in ? from SampleBaseClass import SampleBaseClass ImportError: No module named SampleBaseClass ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective.test10 (#import os.path -- use it with NameMapper turned off) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1888, in test10 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = ## #compiler-settings useNameMapper=False #end compiler-settings #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective.test9 (#import os.path -- use it) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1877, in test9 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective_MacEOL.test10 (#import os.path -- use it with NameMapper turned off) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1888, in test10 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = ## #compiler-settings useNameMapper=False #end compiler-settings #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective_MacEOL.test9 (#import os.path -- use it) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1877, in test9 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective_Win32EOL.test10 (#import os.path -- use it with NameMapper turned off) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1888, in test10 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = ## #compiler-settings useNameMapper=False #end compiler-settings #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.ImportDirective_Win32EOL.test9 (#import os.path -- use it) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 1877, in test9 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = #import os.path $os.path.exists('.')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.Placeholders_Vals.test8 (True, False) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 540, in test8 self.verify("$True $False", "1 0") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $True $False(end) Expected Output = 1 0(end) Actual Output = True False(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists.test1 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2104, in test1 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists.test2 ($varExists('anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2110, in test2 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists.test3 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2116, in test3 "0") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$bogus')(end) Expected Output = 0(end) Actual Output = False(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_MacEOL.test1 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2104, in test1 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_MacEOL.test2 ($varExists('anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2110, in test2 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_MacEOL.test3 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2116, in test3 "0") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$bogus')(end) Expected Output = 0(end) Actual Output = False(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_Win32EOL.test1 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2104, in test1 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_Win32EOL.test2 ($varExists('anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2110, in test2 "1") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('anInt')(end) Expected Output = 1(end) Actual Output = True(end) ********************************************************************** FAIL Cheetah.Tests.SyntaxAndOutput.VarExists_Win32EOL.test3 ($varExists('$anInt')) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 2116, in test3 "0") File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 148, in verify self._verify(output) File "/usr/local/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py", line 167, in _verify assert output == expectedOutput, self.report \ AssertionError: Template output mismatch: Input Template = $varExists('$bogus')(end) Expected Output = 0(end) Actual Output = False(end) ---------------------------------------------------------------------- Ran 1246 tests in 44.821s FAILED (failures=16, errors=3) regards Markus |