Skip to content

Commit

Permalink
Add failing test for #39
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert committed Jul 23, 2014
1 parent 69893c3 commit ecdf79d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/extractors/test_xml.py
Expand Up @@ -450,6 +450,18 @@ def test_nested_braces(self):
['''resource_url(_query={'one': 'one'})''']


@pytest.mark.usefixtures('fake_source')
def test_python_expression_in_tales_expressions():
global source
source = u'''
<html xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="lingua">
<dummy tal:define="css_class css_class|string:${field.widget.css_class};">Dummy</dummy>
</html>
'''.encode('utf-8')
assert list(extract_xml('filename', _options())) == []


@pytest.mark.usefixtures('fake_source')
def test_ignore_structure_in_replace():
global source
Expand Down

0 comments on commit ecdf79d

Please sign in to comment.