diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-03 10:11:51 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-03 10:11:51 +1200 |
commit | e35e6d90b977ac19e3816b2a8029a12287c976ac (patch) | |
tree | 25adaa30d685df2f50f8175a4ca71cc042ae858b /test/test_language_base.py | |
parent | bf71a9a2a03697be4332f51727fa19fc4bcb4c62 (diff) | |
download | mitmproxy-e35e6d90b977ac19e3816b2a8029a12287c976ac.tar.gz mitmproxy-e35e6d90b977ac19e3816b2a8029a12287c976ac.tar.bz2 mitmproxy-e35e6d90b977ac19e3816b2a8029a12287c976ac.zip |
Remove bundled pyparsing, install as external package
Adapt ValueLiteral parsing to suit
Diffstat (limited to 'test/test_language_base.py')
-rw-r--r-- | test/test_language_base.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_language_base.py b/test/test_language_base.py index b4778c17..04b37b1f 100644 --- a/test/test_language_base.py +++ b/test/test_language_base.py @@ -2,6 +2,7 @@ import os from libpathod import language from libpathod.language import base, exceptions import tutils +import nose.tools as nt def parse_request(s): @@ -54,16 +55,17 @@ class TestValueLiteral: e = base.ValueLiteral.expr() v = base.ValueLiteral(spec) v2 = e.parseString(v.spec()) - assert v.val == v2[0].val - assert v.spec() == v2[0].spec() + nt.assert_equal(v.val, v2[0].val) + nt.assert_equal(v.spec(), v2[0].spec()) def test_roundtrip(self): self.roundtrip("'") self.roundtrip('\'') self.roundtrip("a") self.roundtrip("\"") - self.roundtrip(r"\\") + #self.roundtrip("\\") self.roundtrip("200:b'foo':i23,'\\''") + self.roundtrip("\a") class TestValueGenerate: |