"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/Unicode.py" between
cheetah3-3.2.2.tar.gz and cheetah3-3.2.3.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

Unicode.py  (cheetah3-3.2.2):Unicode.py  (cheetah3-3.2.3)
#!/usr/bin/env python
# -*- encoding: utf8 -*- # -*- encoding: utf8 -*-
from glob import glob from glob import glob
import os import os
from shutil import rmtree from shutil import rmtree
import tempfile import tempfile
import unittest import unittest
from Cheetah.Compiler import Compiler from Cheetah.Compiler import Compiler
from Cheetah.Template import Template from Cheetah.Template import Template
from Cheetah import CheetahWrapper from Cheetah import CheetahWrapper
skipping to change at line 255 skipping to change at line 254
class CompilerTest(unittest.TestCase): class CompilerTest(unittest.TestCase):
def test_compiler_str(self): def test_compiler_str(self):
""" Test Compiler.__str__ """ """ Test Compiler.__str__ """
source = """#encoding utf-8 source = """#encoding utf-8
#set $someUnicodeString = u"Bébé" #set $someUnicodeString = u"Bébé"
$someUnicodeString""" $someUnicodeString"""
compiler = Compiler(source) compiler = Compiler(source)
self.assertIsInstance(str(compiler), str) self.assertIsInstance(str(compiler), str)
self.assertEqual(compiler.getModuleEncoding(), 'utf-8') self.assertEqual(compiler.getModuleEncoding(), 'utf-8')
if __name__ == '__main__':
 End of changes. 2 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)