]> khamidou — GitHub mirrors - imapclient.git/commitdiff
failing test for BODYSTRUCTURE tuples issue (#58)
authorMenno Smits <menno@freshfoo.com>
Thu, 16 Sep 2010 16:49:16 +0000 (17:49 +0100)
committerMenno Smits <menno@freshfoo.com>
Thu, 16 Sep 2010 16:49:16 +0000 (17:49 +0100)
imapclient/test/test_response_parser.py

index 1f731043bb3a85f1a497446c60383d93b5110bf8..b70df309c45be829cab8d297105baae5e4dbfee3 100644 (file)
@@ -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") '