diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-15 00:01:00 -0800 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-15 00:01:00 -0800 |
commit | 752cb3af40a9463c81ac6a31b9baec79b8ee36ca (patch) | |
tree | e756ee19b902bfabb3007f506f4f1b9b4b3eeee6 /cheetah/Tests | |
parent | 70c9bd4737cd446c76b5c0be520b4a2a67044407 (diff) | |
download | python-cheetah-752cb3af40a9463c81ac6a31b9baec79b8ee36ca.tar.gz |
Add a test to verify escaped entities in #raw blocks
Related to 0cc9f78 and 70c9bd4
Diffstat (limited to 'cheetah/Tests')
-rw-r--r-- | cheetah/Tests/SyntaxAndOutput.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cheetah/Tests/SyntaxAndOutput.py b/cheetah/Tests/SyntaxAndOutput.py index 452dcbb..66e8bd7 100644 --- a/cheetah/Tests/SyntaxAndOutput.py +++ b/cheetah/Tests/SyntaxAndOutput.py @@ -1359,6 +1359,12 @@ class RawDirective(OutputTest): self.verify("#raw: $aFunc().\n$anInt", "$aFunc().\n1") + def test6(self): + """ Escape characters in a #raw block """ + self.verify( """#raw: This escape should be preserved: \\$unexpanded So should this one: \\#blah The string "\\012" should not disappear.""", + r"""This escape should be preserved: \$unexpanded So should this one: \#blah The string "\012" should not disappear.""") + + class BreakpointDirective(OutputTest): def test1(self): """#breakpoint part way through source code""" |