"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/Filters.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.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.1.0):Filters.py  (cheetah3-3.2.0)
skipping to change at line 30 skipping to change at line 30
expected = '''<p>bar</p> expected = '''<p>bar</p>
<h1>Header</h1>''' <h1>Header</h1>'''
try: try:
template = Cheetah.Template.Template( template = Cheetah.Template.Template(
template, searchList=[{'foo': 'bar'}]) template, searchList=[{'foo': 'bar'}])
template = str(template) template = str(template)
assert template == expected assert template == expected
except ImportError as ex: except ImportError as ex:
print('>>> We probably failed to import markdown, bummer %s' % ex) print('>>> We probably failed to import markdown, bummer %s' % ex)
return return
except Exception as ex: except Exception:
raise raise
class BasicCodeHighlighterFilterTest(unittest.TestCase): class BasicCodeHighlighterFilterTest(unittest.TestCase):
''' '''
Test that our code highlighter filter works Test that our code highlighter filter works
''' '''
def test_Python(self): def test_Python(self):
template = ''' template = '''
#from Cheetah.Filters import CodeHighlighter #from Cheetah.Filters import CodeHighlighter
#transform CodeHighlighter #transform CodeHighlighter
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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