"Fossies" - the Fresh Open Source Software Archive  

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

Parser.py  (cheetah3-3.2.2):Parser.py  (cheetah3-3.2.3)
#!/usr/bin/env python
import unittest import unittest
from Cheetah import Parser from Cheetah import Parser
class ArgListTest(unittest.TestCase): class ArgListTest(unittest.TestCase):
def setUp(self): def setUp(self):
super(ArgListTest, self).setUp() super(ArgListTest, self).setUp()
self.al = Parser.ArgList() self.al = Parser.ArgList()
def test_merge1(self): def test_merge1(self):
skipping to change at line 47 skipping to change at line 45
def test_merge3(self): def test_merge3(self):
""" """
Testing the ArgList case results from Testing the ArgList case results from
SyntaxAndOutput.BlockDirective.test13 SyntaxAndOutput.BlockDirective.test13
""" """
self.al.add_argument('arg') self.al.add_argument('arg')
self.al.add_default("'This is my block'") self.al.add_default("'This is my block'")
expect = [('arg', "'This is my block'")] expect = [('arg', "'This is my block'")]
self.assertEqual(expect, self.al.merge()) self.assertEqual(expect, self.al.merge())
if __name__ == '__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)