From 8c6cc8140c6ac51966bdfabd5bb1180c2dd623b0 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 31 Oct 2012 09:48:55 +1300 Subject: Fix generated values in request path specification. --- test/test_language.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_language.py') diff --git a/test/test_language.py b/test/test_language.py index a6f735f1..b02a89dd 100644 --- a/test/test_language.py +++ b/test/test_language.py @@ -169,6 +169,7 @@ class TestMisc: v2 = v.freeze({}) v3 = v2.freeze({}) assert v2.value.val == v3.value.val + assert len(v2.value.val) == 100 s = v.spec() assert s == v.expr().parseString(s)[0].spec() @@ -488,6 +489,10 @@ class TestRequest: r = language.parse_request({}, "GET:/:b@100").freeze({}) assert len(r.spec()) > 100 + def test_path_generator(self): + r = language.parse_request({}, "GET:@100").freeze({}) + assert len(r.spec()) > 100 + class TestWriteValues: def test_send_chunk(self): -- cgit v1.2.3