Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
Cheetah /
Tests /
Delete
Unzip
Name
Size
Permission
Date
Action
Analyzer.py
604
B
-rw-r--r--
2014-01-10 04:44
Analyzer.pyc
1.21
KB
-rw-r--r--
2014-01-10 04:44
Analyzer.pyo
1.21
KB
-rw-r--r--
2014-01-10 04:44
CheetahWrapper.py
18.71
KB
-rw-r--r--
2014-01-10 04:44
CheetahWrapper.pyc
29.16
KB
-rw-r--r--
2014-01-10 04:44
CheetahWrapper.pyo
29.16
KB
-rw-r--r--
2014-01-10 04:44
Cheps.py
1.03
KB
-rw-r--r--
2014-01-10 04:44
Cheps.pyc
1.76
KB
-rw-r--r--
2014-01-10 04:44
Cheps.pyo
1.71
KB
-rw-r--r--
2014-01-10 04:44
Filters.py
1.94
KB
-rw-r--r--
2014-01-10 04:44
Filters.pyc
2.74
KB
-rw-r--r--
2014-01-10 04:44
Filters.pyo
2.57
KB
-rw-r--r--
2014-01-10 04:44
Misc.py
493
B
-rw-r--r--
2014-01-10 04:44
Misc.pyc
1.03
KB
-rw-r--r--
2014-01-10 04:44
Misc.pyo
1.03
KB
-rw-r--r--
2014-01-10 04:44
NameMapper.py
14.62
KB
-rw-r--r--
2014-01-10 04:44
NameMapper.pyc
26.95
KB
-rw-r--r--
2014-01-10 04:44
NameMapper.pyo
26.4
KB
-rw-r--r--
2014-01-10 04:44
Parser.py
1.2
KB
-rw-r--r--
2014-01-10 04:44
Parser.pyc
2.07
KB
-rw-r--r--
2014-01-10 04:44
Parser.pyo
2.07
KB
-rw-r--r--
2014-01-10 04:44
Performance.py
7.15
KB
-rw-r--r--
2014-01-10 04:44
Performance.pyc
9.37
KB
-rw-r--r--
2014-01-10 04:44
Performance.pyo
9.35
KB
-rw-r--r--
2014-01-10 04:44
Regressions.py
8.18
KB
-rw-r--r--
2014-01-10 04:44
Regressions.pyc
9.29
KB
-rw-r--r--
2014-01-10 04:44
Regressions.pyo
8.64
KB
-rw-r--r--
2014-01-10 04:44
SyntaxAndOutput.py
91.28
KB
-rw-r--r--
2014-01-10 04:44
SyntaxAndOutput.pyc
142.79
KB
-rw-r--r--
2014-01-10 04:44
SyntaxAndOutput.pyo
142.38
KB
-rw-r--r--
2014-01-10 04:44
Template.py
12.15
KB
-rw-r--r--
2014-01-10 04:44
Template.pyc
14.54
KB
-rw-r--r--
2014-01-10 04:44
Template.pyo
12.81
KB
-rw-r--r--
2014-01-10 04:44
Test.py
1.48
KB
-rw-r--r--
2014-01-10 04:44
Test.pyc
1.55
KB
-rw-r--r--
2014-01-10 04:44
Test.pyo
1.55
KB
-rw-r--r--
2014-01-10 04:44
Unicode.py
7.13
KB
-rw-r--r--
2014-01-10 04:44
Unicode.pyc
10.78
KB
-rw-r--r--
2014-01-10 04:44
Unicode.pyo
10.12
KB
-rw-r--r--
2014-01-10 04:44
__init__.py
2
B
-rw-r--r--
2014-01-10 04:44
__init__.pyc
147
B
-rw-r--r--
2014-01-10 04:44
__init__.pyo
147
B
-rw-r--r--
2014-01-10 04:44
xmlrunner.py
12.42
KB
-rw-r--r--
2014-01-10 04:44
xmlrunner.pyc
17.48
KB
-rw-r--r--
2014-01-10 04:44
xmlrunner.pyo
17.48
KB
-rw-r--r--
2014-01-10 04:44
Save
Rename
import sys import unittest import Cheetah.Template import Cheetah.Filters majorVer, minorVer = sys.version_info[0], sys.version_info[1] versionTuple = (majorVer, minorVer) class BasicMarkdownFilterTest(unittest.TestCase): ''' Test that our markdown filter works ''' def test_BasicHeader(self): template = ''' #from Cheetah.Filters import Markdown #transform Markdown $foo Header ====== ''' expected = '''<p>bar</p> <h1>Header</h1>''' try: template = Cheetah.Template.Template(template, searchList=[{'foo' : 'bar'}]) template = str(template) assert template == expected except ImportError, ex: print('>>> We probably failed to import markdown, bummer %s' % ex) return except Exception, ex: if ex.__class__.__name__ == 'MarkdownException' and majorVer == 2 and minorVer < 5: print('>>> NOTE: Support for the Markdown filter will be broken for you. Markdown says: %s' % ex) return raise class BasicCodeHighlighterFilterTest(unittest.TestCase): ''' Test that our code highlighter filter works ''' def test_Python(self): template = ''' #from Cheetah.Filters import CodeHighlighter #transform CodeHighlighter def foo(self): return '$foo' ''' template = Cheetah.Template.Template(template, searchList=[{'foo' : 'bar'}]) template = str(template) assert template, (template, 'We should have some content here...') def test_Html(self): template = ''' #from Cheetah.Filters import CodeHighlighter #transform CodeHighlighter <html><head></head><body>$foo</body></html> ''' template = Cheetah.Template.Template(template, searchList=[{'foo' : 'bar'}]) template = str(template) assert template, (template, 'We should have some content here...') if __name__ == '__main__': unittest.main()