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 |