Skip to content

Commit

Permalink
Add failing test for #143
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed May 5, 2016
1 parent 7ae6280 commit 251bfcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/SyntaxAndOutput_test.py
Expand Up @@ -1817,3 +1817,14 @@ def test_allow_getvar_of_underscored_things():
# Regression test for v0.11.0
cls = compile_to_class('$self.getVar("foo_BAR1")')
assert cls({'foo_BAR1': 'baz'}).respond() == 'baz'


@pytest.mark.xfail
def test_transaction_cleared_on_dummy_trans():
cls = compile_to_class(
'#def foo():#return "hello"\n'
'#def bar():world\n'
)
tmpl = cls()
assert tmpl.foo() == 'hello'
assert tmpl.bar() == 'world'

0 comments on commit 251bfcc

Please sign in to comment.