Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/site-packages/Cheetah/Tests
usr
/
lib64
/
python2.6
/
site-packages
/
Cheetah
/
Tests
/
📁
..
📄
Analyzer.py
(604 B)
📄
Analyzer.pyc
(1.21 KB)
📄
Analyzer.pyo
(1.21 KB)
📄
CheetahWrapper.py
(18.45 KB)
📄
CheetahWrapper.pyc
(29.03 KB)
📄
CheetahWrapper.pyo
(29.03 KB)
📄
Cheps.py
(1.03 KB)
📄
Cheps.pyc
(1.77 KB)
📄
Cheps.pyo
(1.72 KB)
📄
Filters.py
(1.94 KB)
📄
Filters.pyc
(2.75 KB)
📄
Filters.pyo
(2.58 KB)
📄
Misc.py
(493 B)
📄
Misc.pyc
(1.03 KB)
📄
Misc.pyo
(1.03 KB)
📄
NameMapper.py
(13.92 KB)
📄
NameMapper.pyc
(25.51 KB)
📄
NameMapper.pyo
(24.96 KB)
📄
Parser.py
(1.2 KB)
📄
Parser.pyc
(2.08 KB)
📄
Parser.pyo
(2.08 KB)
📄
Performance.py
(7.15 KB)
📄
Performance.pyc
(9.42 KB)
📄
Performance.pyo
(9.4 KB)
📄
Regressions.py
(8.18 KB)
📄
Regressions.pyc
(9.32 KB)
📄
Regressions.pyo
(8.65 KB)
📄
SyntaxAndOutput.py
(91.03 KB)
📄
SyntaxAndOutput.pyc
(142.58 KB)
📄
SyntaxAndOutput.pyo
(142.16 KB)
📄
Template.py
(11.77 KB)
📄
Template.pyc
(13.84 KB)
📄
Template.pyo
(12.04 KB)
📄
Test.py
(1.48 KB)
📄
Test.pyc
(1.55 KB)
📄
Test.pyo
(1.55 KB)
📄
Unicode.py
(7.13 KB)
📄
Unicode.pyc
(10.82 KB)
📄
Unicode.pyo
(10.13 KB)
📄
__init__.py
(2 B)
📄
__init__.pyc
(147 B)
📄
__init__.pyo
(147 B)
📄
xmlrunner.py
(12.42 KB)
📄
xmlrunner.pyc
(17.51 KB)
📄
xmlrunner.pyo
(17.51 KB)
Editing: Cheps.py
import unittest import Cheetah import Cheetah.Parser import Cheetah.Template class Chep_2_Conditionalized_Import_Behavior(unittest.TestCase): def test_ModuleLevelImport(self): ''' Verify module level (traditional) import behavior ''' pass def test_InlineImport(self): ''' Verify (new) inline import behavior works ''' template = ''' #def funky($s) #try #import urllib #except ImportError #pass #end try #return urllib.quote($s) #end def ''' try: template = Cheetah.Template.Template.compile(template) except Cheetah.Parser.ParseError, ex: self.fail('Failed to properly generate code %s' % ex) template = template() rc = tepmlate.funky('abc def') assert rc == 'abc+def' def test_LegacyMode(self): ''' Verify disabling of CHEP #2 works ''' pass if __name__ == '__main__': unittest.main()
Upload File
Create Folder