diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-21 14:12:45 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-21 14:12:45 +1200 |
commit | 8ec44c627770e5a41faabbf724ad54ed518e08f6 (patch) | |
tree | 8092cf4ba81d87c1b5c1eba3aba06ae548751f28 /test | |
parent | 8e0c01ae39f2f1f80ad0d372119e8654de21d29c (diff) | |
download | mitmproxy-8ec44c627770e5a41faabbf724ad54ed518e08f6.tar.gz mitmproxy-8ec44c627770e5a41faabbf724ad54ed518e08f6.tar.bz2 mitmproxy-8ec44c627770e5a41faabbf724ad54ed518e08f6.zip |
Allow Python string escape sequences in value literals.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_rparse.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py index dfc8c758..11c831c6 100644 --- a/test/test_rparse.py +++ b/test/test_rparse.py @@ -40,7 +40,11 @@ class TestMisc: def test_valueliteral(self): v = rparse.ValueLiteral("foo") assert v.expr() - assert str(v) + assert v.val == "foo" + + v = rparse.ValueLiteral(r"foo\n") + assert v.expr() + assert v.val == "foo\n" def test_valuenakedliteral(self): v = rparse.ValueNakedLiteral("foo") |