"Fossies" - the Fresh Open Source Software Archive  

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

Regressions.py  (cheetah3-3.1.0):Regressions.py  (cheetah3-3.2.0)
skipping to change at line 24 skipping to change at line 24
class GetAttrTest(unittest.TestCase): class GetAttrTest(unittest.TestCase):
''' '''
Test for an issue occurring when __getatttr__() raises an exception Test for an issue occurring when __getatttr__() raises an exception
causing NameMapper to raise a NotFound exception causing NameMapper to raise a NotFound exception
''' '''
def test_ValidException(self): def test_ValidException(self):
o = CustomGetAttrClass() o = CustomGetAttrClass()
try: try:
print(o.attr) print(o.attr)
except GetAttrException as e: except GetAttrException:
# expected # expected
return return
except Exception as e: except Exception as e:
self.fail('Invalid exception raised: %s' % e) self.fail('Invalid exception raised: %s' % e)
self.fail('Should have had an exception raised') self.fail('Should have had an exception raised')
def test_NotFoundException(self): def test_NotFoundException(self):
template = ''' template = '''
#def raiseme() #def raiseme()
$obj.attr $obj.attr
 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)