From 59f408dcf437b0099edc0b54b73c006752c7dc7e Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 25 Jul 2012 10:44:21 +1200 Subject: Refine parse error message a bit. --- test/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_utils.py') diff --git a/test/test_utils.py b/test/test_utils.py index a8f513f8..0a48d87d 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -17,6 +17,11 @@ def test_data_path(): tutils.raises(ValueError, utils.data.path, "nonexistent") +def test_inner_repr(): + assert utils.inner_repr("\x66") == "\x66" + assert utils.inner_repr(u"foo") == "foo" + + def test_escape_unprintables(): s = "".join([chr(i) for i in range(255)]) e = utils.escape_unprintables(s) -- cgit v1.2.3