"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/Filters.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).

Filters.py  (cheetah3-3.2.2):Filters.py  (cheetah3-3.2.3)
#!/usr/bin/env python
import unittest import unittest
import Cheetah.Template import Cheetah.Template
import Cheetah.Filters import Cheetah.Filters
class BasicMarkdownFilterTest(unittest.TestCase): class BasicMarkdownFilterTest(unittest.TestCase):
''' '''
Test that our markdown filter works Test that our markdown filter works
''' '''
def test_BasicHeader(self): def test_BasicHeader(self):
template = ''' template = '''
skipping to change at line 61 skipping to change at line 59
template = ''' template = '''
#from Cheetah.Filters import CodeHighlighter #from Cheetah.Filters import CodeHighlighter
#transform CodeHighlighter #transform CodeHighlighter
<html><head></head><body>$foo</body></html> <html><head></head><body>$foo</body></html>
''' '''
template = Cheetah.Template.Template( template = Cheetah.Template.Template(
template, searchList=[{'foo': 'bar'}]) template, searchList=[{'foo': 'bar'}])
template = str(template) template = str(template)
assert template, (template, 'We should have some content here...') assert template, (template, 'We should have some content here...')
if __name__ == '__main__':
unittest.main()
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

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