Revonzy Mini Shell

Şuanki Dizin: /lib64/python2.7/site-packages/Cheetah/Tests/
Dosya Yükle :
Şuanki Dosya : //lib64/python2.7/site-packages/Cheetah/Tests/Analyzer.py

import unittest

from Cheetah import DirectiveAnalyzer


class AnalyzerTests(unittest.TestCase):
    def test_set(self):
        template = '''
        #set $foo = "bar"
        Hello ${foo}!
        '''
        calls = DirectiveAnalyzer.analyze(template)
        self.assertEquals(1, calls.get('set'))

    def test_compilersettings(self):
        template = '''
#compiler-settings
useNameMapper = False
#end compiler-settings
        '''
        calls = DirectiveAnalyzer.analyze(template)
        self.assertEquals(1, calls.get('compiler-settings'))


if __name__ == '__main__':
    unittest.main()


EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux vps.suncrosonline.com 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Apache
162.241.69.42