Skip to content
Myr

Whitespace cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 2b0231c · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:jinja2/testsuite/regression.py+4 added-3 removed
244 unmodified lines
245 except TemplateNotFound, e:246 assert e.name == 'foo/bar.html'247 else:248 assert False, 'expected error here'249 249250 def test_contextfunction_callable_classes(self):251 from jinja2.utils import contextfunction252 class CallableClass(object):253 @contextfunction254 def __call__(self, ctx):255 return ctx.resolve('hello')256 256257 tpl = Template("""{{ callableclass() }}""")258 output = tpl.render(callableclass = CallableClass(), hello = 'TEST')259 expected = 'TEST'260 260261 self.assert_equal(output, expected)262263264def suite():265 suite = unittest.TestSuite()266 suite.addTest(unittest.makeSuite(CornerTestCase))267 suite.addTest(unittest.makeSuite(BugTestCase))
1 unmodified line