]> khamidou — GitHub mirrors - imapclient.git/commitdiff
stub for testing resposne parser
authorNaveen Nathan <naveen@lastninja.net>
Fri, 25 Oct 2013 00:14:52 +0000 (11:14 +1100)
committerNaveen Nathan <naveen@lastninja.net>
Fri, 25 Oct 2013 00:14:52 +0000 (11:14 +1100)
imapclient/test/test_response_parser.py

index 84c249c9ac4bebf34690453f2c6b307bb9719868..825b063cc4588c2cb8b981dc1ff97575d22198bf 100644 (file)
@@ -288,7 +288,13 @@ class TestParseFetchResponse(unittest.TestCase):
             [('123 (UID 367 BODY[]<0> {20}', body), ')']),
             { 367: {'BODY[]<0>': body,
                     'SEQ': 123}})
-                    
+
+    def test_ENVELOPE(self):
+        def check(envelope_str, expected_envelope):
+            output = parse_fetch_response(['3 (ENVELOPE '+envelope_str+')'])
+            self.assertEqual(1,2)
+
+        check("abc", "def")
 
     def test_INTERNALDATE_normalised(self):
         def check(date_str, expected_dt):