From: Naveen Nathan Date: Fri, 25 Oct 2013 00:14:52 +0000 (+1100) Subject: stub for testing resposne parser X-Git-Tag: 0.11~3^2~13 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4e7fa71ab362018e0daec3cb0f793b9693d9e6bc;p=imapclient.git stub for testing resposne parser --- diff --git a/imapclient/test/test_response_parser.py b/imapclient/test/test_response_parser.py index 84c249c..825b063 100644 --- a/imapclient/test/test_response_parser.py +++ b/imapclient/test/test_response_parser.py @@ -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):