diff options
author | Marcel Hellkamp <marc@gsites.de> | 2013-05-30 17:39:44 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2013-05-30 17:39:44 +0200 |
commit | 981caa7a2234c831fdbec19ab343b57e56b74428 (patch) | |
tree | 223182a265c32e4be1b2effe92a01bb0623dbfc7 | |
parent | 12d0034cd877a00f437dbf8b83d00f2ebb9ae466 (diff) | |
download | bottle-stpl3.tar.gz |
Fixed some unit tests, added to coveragestpl3
-rwxr-xr-x | test/test_stpl.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_stpl.py b/test/test_stpl.py index 338c861..361c6a4 100755 --- a/test/test_stpl.py +++ b/test/test_stpl.py @@ -262,11 +262,15 @@ class TestSTPLDir(unittest.TestCase): t1.cache['foo'] = SimpleTemplate('foo') self.assertEqual(t1.render(), 'foo') - def test_old_include(self): + def test_old_include_with_args(self): t1 = SimpleTemplate('%include foo x=y') t1.cache['foo'] = SimpleTemplate('foo{{x}}') self.assertEqual(t1.render(y='bar'), 'foobar') + def test_defect_coding(self): + t1 = SimpleTemplate('%#coding comment\nfoo{{y}}') + self.assertEqual(t1.render(y='bar'), 'foobar') + def test_multiline_block(self): source = ''' <% a = 5 |