From: Menno Smits Date: Thu, 16 Sep 2010 16:49:16 +0000 (+0100) Subject: failing test for BODYSTRUCTURE tuples issue (#58) X-Git-Tag: 0.7~8^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0e075319cc43313828d34cdd19feda1a72b30ec7;p=imapclient.git failing test for BODYSTRUCTURE tuples issue (#58) --- diff --git a/imapclient/test/test_response_parser.py b/imapclient/test/test_response_parser.py index 1f73104..b70df30 100644 --- a/imapclient/test/test_response_parser.py +++ b/imapclient/test/test_response_parser.py @@ -64,6 +64,10 @@ class TestParseResponse(unittest.TestCase): self._test('(123 "foo" ((0 1 2) "more" NIL) 66)', (123, "foo", ((0, 1, 2), "more", None), 66)) + def test_backed_up_tuples(self): + self._test('((12 "foo")(34 NIL 0) "foo")', + ([(12, "foo"), (34, None, 0)], "foo")) + def test_complex_mixed(self): self._test('((FOO "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 1152 23)' '("TEXT" "PLAIN" ("CHARSET" "US-ASCII" "NAME" "cc.diff") '