From e35e6d90b977ac19e3816b2a8029a12287c976ac Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 May 2015 10:11:51 +1200 Subject: Remove bundled pyparsing, install as external package Adapt ValueLiteral parsing to suit --- test/test_language_base.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/test_language_base.py') 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: -- cgit v1.2.3