From 86fe199988801232f209b7e39a2910065bf5db5f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 21 Jul 2012 20:20:37 +1200 Subject: pathoc: add a flag to dump request information. --- test/test_rparse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/test_rparse.py') diff --git a/test/test_rparse.py b/test/test_rparse.py index 11c831c6..1527bddf 100644 --- a/test/test_rparse.py +++ b/test/test_rparse.py @@ -12,7 +12,8 @@ class TestMisc: assert g[:] == "val" def test_randomgenerator(self): - g = rparse.RandomGenerator("one", 100) + g = rparse.RandomGenerator("bytes", 100) + assert repr(g) assert len(g[:10]) == 10 assert len(g[1:10]) == 9 assert len(g[:1000]) == 100 @@ -21,6 +22,7 @@ class TestMisc: def test_literalgenerator(self): g = rparse.LiteralGenerator("one") + assert repr(g) assert g == "one" assert g[:] == "one" assert g[1] == "n" -- cgit v1.2.3