aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-21 14:12:45 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-21 14:12:45 +1200
commit8ec44c627770e5a41faabbf724ad54ed518e08f6 (patch)
tree8092cf4ba81d87c1b5c1eba3aba06ae548751f28 /test
parent8e0c01ae39f2f1f80ad0d372119e8654de21d29c (diff)
downloadmitmproxy-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.py6
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")